// Ionic Starter App

var WX_APPID = "wx62d4e46e7e2579ae";
var QQ_APPID = "101405842";
var WX_CHATID = "wx694692523410008e";

//正式-测试 分享工作
var HTTP_API = 'http://www.wlwj.com'; //正式
//var HTTP_API = 'http://localhost/b2b2c_cn/';//测试地址
//var HTTP_API = '192.168.1.111:8080';

var HTTP_URL = HTTP_API + '/index.php/openapi/cellphone/api'; //API地址
//正式
var HTTP_PATH = 'http://www.wlwj.com';
//var HTTP_PATH = 'http://localhost/b2b2c_cn';
//分享mobile路径
var HTTP_SHARE_URL = HTTP_PATH + '/mobile/';
//聊天页面
var HTTP_CHAT1_URL = HTTP_API + '/txcall/app_txcall.php'; //需要做进一步跳转
var HTTP_CHAT2_URL = HTTP_API + '/txcall/app_enter.php'; //直接打开的页面
var HTTP_CHAT3_URL = HTTP_API + '/txcall/app_comment.php'; //直接打开的页面
//跳转到第三方链接
var HTTP_URL_BBS = HTTP_PATH + "/index.php/group-mobilebbs.html";
var HTTP_URL_RECRUITMENT = HTTP_PATH + "/index.php/recruitment-mobileindex.html";
var HTTP_URL_TRAIN = HTTP_PATH + "/index.php/exclusive-mobiletrain.html";
//请求接口地址
var HTTP_TOKEN = 'daquanfuwu';
var HTTP_ISLOGIC = true;

define(['commons/directives', 'commons/libs'],

	function() {
		'use strict';
		// angular.module is a global place for creating, registering and retrieving Angular modules
		// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
		// the 2nd parameter is an array of 'requires'
		// 'starter.services' is found in services.js
		// 'starter.controllers' is found in controllers.js

		var app = angular.module('starter', ['ionic',
			'starter.directives',
			'starter.libs',
			'ionicLazyLoad',
			'monospaced.elastic',
			'ion-datetime-picker'
		])

		//对应的 input 只要添加相应的 type 进行控制即可，支持的所有 type 见这里
		//<input type="email" placeholder="邮箱" ng-model="data.username">
		app.run(function($rootScope, $ionicLoading, $ionicPlatform, $ionicPickerI18n, $location, $ionicHistory, $ionicNavBarDelegate, GoDialog, GoPush, GoHotCode, GoWapAuth) {
			$ionicPlatform.ready(function() {
				// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
				// for form inputs)
				if(window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
					cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
					cordova.plugins.Keyboard.disableScroll(true);
				} else {
					//微信
					GoWapAuth.iswechat(function() {
						//每天只取一次
						var newday = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate();
						//微信jssdk 模块化加载
						var day = localStorage.getItem("day");
						if(day == undefined) {
						    //删除本地缓存
						    sessionStorage.clear();
						    localStorage.clear();
						    //记录每天登陆情况
							localStorage.setItem("day", newday);
							day = localStorage.getItem("day");
						}
						//满1天，自动清除
						if(newday != day) {
							sessionStorage.clear();
							localStorage.clear();
						}
						//执行微信处理
						GoWapAuth.execwx();
					}, function() {
						GoWapAuth.exec();
					});
				}
				if(window.StatusBar) {
					// org.apache.cordova.statusbar required
					StatusBar.styleDefault();
				}
			});

			//			//判断是否为app
			//			if(window.cordova && window.cordova.plugins) {
			//				$rootScope.isNotApp = false;
			//			} else {
			//				if(GoWapAuth.isWeiXin()) {
			//					$rootScope.isNotApp = false;
			//				} else {
			//					$rootScope.isNotApp = true;
			//				}
			//			}

			//代码提示
			GoHotCode.initUpdate();
			//使用极光推送插件
			GoPush.init(); //初始化推送
			// GoPush.regist(); //注册registID
			GoPush.receiveNotification(); //接收到普通消息会触发
			GoPush.openNotification(); //点击通知进入
			//虚拟返回按钮
			$ionicPlatform.registerBackButtonAction(function(e) {
				e.preventDefault();

				// Is there a page to go back to?
				if($location.path() == '/tab/home' ||
					$location.path() == '/tab/classes' ||
					$location.path() == '/tab/findus' ||
					$location.path() == '/tab/cart' ||
					$location.path() == '/tab/center') {
					//提示
					GoDialog.confirm("退出应用", "你确定要退出应用吗？", function() {
						ionic.Platform.exitApp();
					});
				} else if($ionicHistory.backView()) {
					$ionicHistory.goBack();
				} else {
					//提示
					GoDialog.confirm("退出应用", "你确定要退出应用吗？", function() {
						ionic.Platform.exitApp();
					});
				}

				return false;
			}, 101);
			//加载图标 显示
			$rootScope.$on('loading:show', function() { //$on绑定loading的动态状态
				$ionicLoading.show({
					content: 'Loading',
					animation: 'fade-in',
					showBackdrop: false,
					showDelay: 0
				});
			});
			//加载图标 隐藏
			$rootScope.$on('loading:hide', function() {
				$ionicLoading.hide()
			});
			//初始化日期组件
			$ionicPickerI18n.weekdays = ["日", "一", "二", "三", "四", "五", "六"];
			$ionicPickerI18n.months = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"];
			$ionicPickerI18n.ok = "确定";
			$ionicPickerI18n.cancel = "取消";
			$ionicPickerI18n.okClass = "buttonOrange";
//			$ionicPickerI18n.cancelClass = "button-stable";
			//动态设置标题
			$rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
				if(toState.data != undefined) {
					setTimeout(function() {
						document.title = toState.data.title;
					}, 300);
					$rootScope.title = toState.data.title;
				} else {
					setTimeout(function() {
						document.title = '未来万家商城';
					}, 300);
					$rootScope.title = '未来万家商城';
				}
			});
		})

		//按需加载
		app.config(function($controllerProvider, $provide) {
			//注册控制器路径
			var registControllers = new Object();
			//命名尽可能小写
			registControllers['tabsctrl'] = 'controllers/tabs/tabs.controller';
			//导航页
			registControllers['homectrl'] = 'controllers/tabs/home.controller';
			registControllers['classesctrl'] = 'controllers/tabs/classes.controller';
			registControllers['findusctrl'] = 'controllers/tabs/findus.controller';
			registControllers['membermapctrl'] = 'controllers/tabs/member_map.controller';
			registControllers['addcartctrl'] = 'controllers/tabs/addcart.controller';
			registControllers['centerctrl'] = 'controllers/tabs/center.controller';
			registControllers['t_loginctrl'] = 'controllers/tabs/t_login.controller';
			registControllers['t_login_authctrl'] = 'controllers/tabs/t_login_auth.controller';
			registControllers['t_registerctrl'] = 'controllers/tabs/t_register.controller';
			registControllers['t_f_passwordctrl'] = 'controllers/tabs/t_f_password.controller';
			registControllers['tab_cartctrl'] = 'controllers/tabs/tab_cart.controller';
			registControllers['appdownctrl'] = 'controllers/tabs/appdown.controller';

			//myinfo-导航子页面
			registControllers['t_messagectrl'] = 'controllers/myinfo/t_message.controller';
			registControllers['personal_datactrl'] = 'controllers/myinfo/t_personal_data.controller';
			registControllers['store_datactrl'] = 'controllers/myinfo/t_store_data.controller';
			registControllers['warehouse_upgradectrl'] = 'controllers/myinfo/warehouse_upgrade.controller';
			registControllers['searchpro_manufactorctrl'] = 'controllers/myinfo/searchpro_manufactor.controller';
			registControllers['message_detailctrl'] = 'controllers/myinfo/message_detail.controller';
			//worldsetting-导航子页面
			registControllers['t_setctrl'] = 'controllers/worldsetting/t_set.controller';
			registControllers['linkemailctrl'] = 'controllers/worldsetting/linkemail.controller';
			registControllers['linkwxctrl'] = 'controllers/worldsetting/linkwx.controller';
			registControllers['linkqqctrl'] = 'controllers/worldsetting/linkqq.controller';
			registControllers['address_add_yhctrl'] = 'controllers/worldsetting/t_address_add_yh.controller';
			registControllers['address_add_fpctrl'] = 'controllers/worldsetting/t_address_add_fp.controller';
			registControllers['address_add_fp_buyerctrl'] = 'controllers/worldsetting/t_address_add_fp_buyer.controller';
			registControllers['t_addressctrl'] = 'controllers/worldsetting/t_address.controller';
			registControllers['t_address_sellerctrl'] = 'controllers/worldsetting/t_address_seller.controller';
			registControllers['address_addctrl'] = 'controllers/worldsetting/t_address_add.controller';
			registControllers['address_add_sellerctrl'] = 'controllers/worldsetting/t_address_add_seller.controller';
			registControllers['logisticsctrl'] = 'controllers/worldsetting/logistics.controller';
			registControllers['logistics_editctrl'] = 'controllers/worldsetting/logistics-edit.controller';
			registControllers['logistics_modalctrl'] = 'controllers/worldsetting/logistics-modal.controller';
			registControllers['t_aboutctrl'] = 'controllers/worldsetting/t_about.controller';
			registControllers['center_listctrl'] = 'controllers/worldsetting/center_list.controller';
			registControllers['service_centerctrl'] = 'controllers/worldsetting/t-service-center.controller';
			registControllers['child_centerctrl'] = 'controllers/worldsetting/child-service-center.controller';
			registControllers['sharectrl'] = 'controllers/worldsetting/share.controller';
			registControllers['customqqctrl'] = 'controllers/worldsetting/customqq.controller';
			registControllers['customqqAddctrl'] = 'controllers/worldsetting/customqqAdd.controller';
			registControllers['custom_commentctrl'] = 'controllers/worldsetting/custom_comment.controller';
			registControllers['custom_dialogctrl'] = 'controllers/worldsetting/custom_dialog.controller';
			registControllers['custom_listctrl'] = 'controllers/worldsetting/custom_list.controller';
			registControllers['t_passowrdctrl'] = 'controllers/worldsetting/t_passowrd.controller';
			registControllers['pay_passwordctrl'] = 'controllers/worldsetting/pay_password.controller';
			//worldservice-导航子页面
			registControllers['transferctrl'] = 'controllers/worldservice/transfer.controller';
			registControllers['transfer_publishctrl'] = 'controllers/worldservice/transfer_publish.controller';
			registControllers['transferdetailctrl'] = 'controllers/worldservice/transferdetail.controller';
			registControllers['newproductpost_testctrl'] = 'controllers/worldservice/newproductpost_test.controller';
			registControllers['newpropromotions_goodsctrl'] = 'controllers/worldservice/newpropromotions_goods.controller';
			registControllers['newpropromotions_infoctrl'] = 'controllers/worldservice/newpropromotions_info.controller';
			registControllers['newproductpost_givectrl'] = 'controllers/worldservice/newproductpost_give.controller';
			registControllers['newpropromotionsctrl'] = 'controllers/worldservice/newpropromotions.controller';
			registControllers['showctrl'] = 'controllers/worldservice/show.controller';
			registControllers['showdetailctrl'] = 'controllers/worldservice/showdetail.controller';
			registControllers['industryrankingsctrl'] = 'controllers/worldservice/industryrankings.controller';
			registControllers['industryrankingsonectrl'] = 'controllers/worldservice/industryrankingsone.controller';
			registControllers['industryrankingsdetailctrl'] = 'controllers/worldservice/industryrankingsdetail.controller';
			registControllers['proconsultctrl'] = 'controllers/worldservice/proconsult.controller';
			registControllers['proconsultproblemctrl'] = 'controllers/worldservice/proconsultproblem.controller';
			registControllers['proconsultservicectrl'] = 'controllers/worldservice/proconsultservice.controller';
			registControllers['recruitmentctrl'] = 'controllers/worldservice/recruitment.controller';
			registControllers['recruitmentbuildctrl'] = 'controllers/worldservice/recruitmentbuild.controller';
			registControllers['recruitmentdetailctrl'] = 'controllers/worldservice/recruitmentdetail.controller';
			registControllers['recruitmentmanagectrl'] = 'controllers/worldservice/recruitmentmanage.controller';
			registControllers['recruitmentsearchjobctrl'] = 'controllers/worldservice/recruitmentsearchjob.controller';
			registControllers['recruitmentsearchresumectrl'] = 'controllers/worldservice/recruitmentsearchresume.controller';
			registControllers['salesoutletsctrl'] = 'controllers/worldservice/salesoutlets.controller';
			registControllers['seckillctrl'] = 'controllers/worldservice/seckill.controller';
			registControllers['seckilldetailctrl'] = 'controllers/worldservice/seckilldetail.controller';
			registControllers['seckillgoodsctrl'] = 'controllers/worldservice/seckill_goods.controller';
			registControllers['agentctrl'] = 'controllers/worldservice/agent.controller';
			registControllers['groupbuyctrl'] = 'controllers/worldservice/groupbuy.controller';
			registControllers['groupbuydetailctrl'] = 'controllers/worldservice/groupbuydetail.controller';
			registControllers['liveplayctrl'] = 'controllers/worldservice/liveplay.controller';
			registControllers['memberaddressctrl'] = 'controllers/worldservice/memberaddress.controller';
			registControllers['myproductctrl'] = 'controllers/worldservice/myproduct.controller';
			registControllers['myproductdetailctrl'] = 'controllers/worldservice/myproductdetail.controller';
			registControllers['panicauctionctrl'] = 'controllers/worldservice/panicauction.controller';
			registControllers['panicauctiondetailctrl'] = 'controllers/worldservice/panicauctiondetail.controller';
			registControllers['panicauction_pinfoctrl'] = 'controllers/worldservice/panicauction_pinfo.controller';
			registControllers['panicauction_payctrl'] = 'controllers/worldservice/panicauction_pay.controller';
			registControllers['activitysecondctrl'] = 'controllers/worldservice/activitysecond.controller';
			registControllers['activitythreectrl'] = 'controllers/worldservice/activitythree.controller';
			registControllers['panicbuyingctrl'] = 'controllers/worldservice/panicbuying.controller';
			registControllers['previewamountctrl'] = 'controllers/worldservice/previewamount.controller';
			registControllers['previewamountproctrl'] = 'controllers/worldservice/previewamountpro.controller';
			registControllers['previewamountrankctrl'] = 'controllers/worldservice/previewamountrank.controller';
			registControllers['promarketctrl'] = 'controllers/worldservice/promarket.controller';
			registControllers['promotionsctrl'] = 'controllers/worldservice/promotions.controller';
			registControllers['promotionslistctrl'] = 'controllers/worldservice/promotionslist.controller';
			registControllers['productextentctrl'] = 'controllers/worldservice/productextent.controller';
			registControllers['productextentdetailctrl'] = 'controllers/worldservice/productextentdetail.controller';
			registControllers['promotionsdetailctrl'] = 'controllers/worldservice/promotionsdetail.controller';
			registControllers['promotionslivectrl'] = 'controllers/worldservice/promotionslive.controller';
			registControllers['promotionspicturectrl'] = 'controllers/worldservice/promotionspicture.controller';
			registControllers['videoplayingctrl'] = 'controllers/worldservice/videoplaying.controller';
			registControllers['unsalableusedctrl'] = 'controllers/worldservice/unsalableused.controller';
			registControllers['unsalableproctrl'] = 'controllers/worldservice/unsalablepro.controller';
			registControllers['warehouse_infoctrl'] = 'controllers/worldservice/warehouse-info.controller';
			registControllers['thememberctrl'] = 'controllers/worldservice/themember.controller';
			registControllers['trainctrl'] = 'controllers/worldservice/train.controller';
			registControllers['exchange_interactionctrl'] = 'controllers/worldservice/exchange_interaction.controller';
			registControllers['bbsctrl'] = 'controllers/worldservice/bbs.controller';
			registControllers['exchange_interaction_chatctrl'] = 'controllers/worldservice/exchange_interaction_chat.controller';
			registControllers['groupbuygoodsctrl'] = 'controllers/worldservice/groupbuy_goods.controller';
			registControllers['newsend_detailctrl'] = 'controllers/worldservice/newsend_detail.controller';
			registControllers['newnotice_detailctrl'] = 'controllers/worldservice/newnotice_detail.controller';
			registControllers['newtest_detailctrl'] = 'controllers/worldservice/newtest_detail.controller';
			//aboutme页面
			registControllers['redpocketctrl'] = 'controllers/aboutme/redpocket.controller';
			registControllers['sendredpocketctrl'] = 'controllers/aboutme/sendredpocket.controller';
			registControllers['predepositctrl'] = 'controllers/aboutme/predeposit.controller';
			registControllers['predepositwaterctrl'] = 'controllers/aboutme/predepositwater.controller';
			registControllers['mypointctrl'] = 'controllers/aboutme/mypoint.controller';
			registControllers['pointgoodsctrl'] = 'controllers/aboutme/pointgoods.controller';
			registControllers['pointorderctrl'] = 'controllers/aboutme/pointorder.controller';
			registControllers['favoritectrl'] = 'controllers/aboutme/favorite.controller';
			registControllers['mybrowsingctrl'] = 'controllers/aboutme/mybrowsing.controller';
			registControllers['couponlistctrl'] = 'controllers/aboutme/couponlist.controller';
			registControllers['predepositdetailsctrl'] = 'controllers/aboutme/predepositdetails.controller';
			registControllers['mypointdetailctrl'] = 'controllers/aboutme/mypointdetail.controller';
			registControllers['exchangerecordctrl'] = 'controllers/aboutme/exchangerecord.controller';
			registControllers['predepositresultctrl'] = 'controllers/aboutme/predepositresult.controller';
			//order/goods
			registControllers['productsearchctrl'] = 'controllers/order/goods/productsearch.controller';
			registControllers['productdetailctrl'] = 'controllers/order/goods/productdetail.controller';
			registControllers['recommend_infoctrl'] = 'controllers/order/goods/recommend_info.controller';
			registControllers['productdetail_recommendctrl'] = 'controllers/order/goods/productdetail_recommend.controller';
			registControllers['product_infoctrl'] = 'controllers/order/goods/product_info.controller';
			registControllers['wendactrl'] = 'controllers/order/goods/wenda.controller';
			registControllers['seckill_pinfoctrl'] = 'controllers/order/goods/seckill_pinfo.controller';
			registControllers['activity_infoctrl'] = 'controllers/order/goods/activity_info.controller';
			registControllers['groupbuy_pinfoctrl'] = 'controllers/order/goods/groupbuy_pinfo.controller';
			registControllers['newnotice_pinfoctrl'] = 'controllers/order/goods/newnotice_pinfo.controller';
			registControllers['newsend_pinfoctrl'] = 'controllers/order/goods/newsend_pinfo.controller';
			//order/store
			registControllers['hotcatctrl'] = 'controllers/order/store/hotcat.controller';
			registControllers['shopinfoctrl'] = 'controllers/order/store/shopinfo.controller';
			//我的大全--catalog
			registControllers['myworldindexctrl'] = 'controllers/myworld/catalog/myworldindex.controller';
			registControllers['mydepositctrl'] = 'controllers/myworld/catalog/mydeposit.controller';
			registControllers['productmanagerctrl'] = 'controllers/myworld/catalog/productmanager.controller';
			registControllers['productmanager_publishctrl'] = 'controllers/myworld/catalog/productmanager_publish.controller';
			registControllers['productmanager_publish_morectrl'] = 'controllers/myworld/catalog/productmanager_publish_more.controller';
			registControllers['productmanager_salectrl'] = 'controllers/myworld/catalog/productmanager_sale.controller';
			registControllers['productmanager_sale_editctrl'] = 'controllers/myworld/catalog/productmanager_sale_edit.controller';
			registControllers['productmanager_brandctrl'] = 'controllers/myworld/catalog/productmanager_brand.controller';
			registControllers['productmanager_brand_agentctrl'] = 'controllers/myworld/catalog/productmanager_brand_agent.controller';
			registControllers['productmanager_brand_editctrl'] = 'controllers/myworld/catalog/productmanager_brand_edit.controller';
			registControllers['branddetailctrl'] = 'controllers/myworld/catalog/branddetail.controller';
			registControllers['productmanager_brand_agent_editctrl'] = 'controllers/myworld/catalog/productmanager_brand_agent_edit.controller';
			registControllers['productmanager_sortctrl'] = 'controllers/myworld/catalog/productmanager_sort.controller';
			registControllers['productmanager_sort_editctrl'] = 'controllers/myworld/catalog/productmanager_sort_edit.controller';
			registControllers['productmanager_waitsalectrl'] = 'controllers/myworld/catalog/productmanager_waitsale.controller';
			registControllers['productmanager_waitsale_editctrl'] = 'controllers/myworld/catalog/productmanager_waitsale_edit.controller';
			//我的大全--business
			registControllers['starbusiness_publicityctrl'] = 'controllers/myworld/business/starbusiness_publicity.controller';
			registControllers['starbusiness_publicity_applyctrl'] = 'controllers/myworld/business/starbusiness_publicity_apply.controller';
			registControllers['starbusiness_pushinfoctrl'] = 'controllers/myworld/business/starbusiness_pushinfo.controller';
			registControllers['starbusiness_pushinfo_applyctrl'] = 'controllers/myworld/business/starbusiness_pushinfo_apply.controller';
			registControllers['wanttoagentctrl'] = 'controllers/myworld/business/wanttoagent.controller';
			registControllers['wanttodistributorctrl'] = 'controllers/myworld/business/wanttodistributor.controller';
			registControllers['employeemanagerctrl'] = 'controllers/myworld/business/employeemanager.controller';
			registControllers['employeemanager_addctrl'] = 'controllers/myworld/business/employeemanager_add.controller';
			registControllers['employeemanager_rightsctrl'] = 'controllers/myworld/business/employeemanager_rights.controller';
			registControllers['employeemanager_rights_addctrl'] = 'controllers/myworld/business/employeemanager_rights_add.controller';
			//我的大全--agent
			registControllers['myagentctrl'] = 'controllers/myworld/agent/myagent.controller';
			registControllers['myagentsalectrl'] = 'controllers/myworld/agent/myagentsale.controller';
			registControllers['myagent_blacklistctrl'] = 'controllers/myworld/agent/myagent_blacklist.controller';
			registControllers['myagent_orderctrl'] = 'controllers/myworld/agent/myagent_order.controller';
			registControllers['myagent_addctrl'] = 'controllers/myworld/agent/myagent_add.controller';
			registControllers['myagent_listctrl'] = 'controllers/myworld/agent/myagent_list.controller';
			registControllers['myagent_publishctrl'] = 'controllers/myworld/agent/myagent_publish.controller';
			//我的大全--distributor
			registControllers['distributorctrl'] = 'controllers/myworld/distributor/distributor.controller';
			registControllers['distributor_blacklistctrl'] = 'controllers/myworld/distributor/distributor_blacklist.controller';
			registControllers['distributor_orderctrl'] = 'controllers/myworld/distributor/distributor_order.controller';
			registControllers['distributor_addctrl'] = 'controllers/myworld/distributor/distributor_add.controller';
			registControllers['distributor_listctrl'] = 'controllers/myworld/distributor/distributor_list.controller';
			registControllers['distributor_publishctrl'] = 'controllers/myworld/distributor/distributor_publish.controller';
			registControllers['myagentdistributor_orderctrl'] = 'controllers/myworld/distributor/myagentdistributor_order.controller';
			//sale
			registControllers['statisticsctrl'] = 'controllers/myworld/sale/statistics.controller';
			registControllers['statistics_testctrl'] = 'controllers/myworld/sale/statistics_test.controller';
			registControllers['statistics_presentctrl'] = 'controllers/myworld/sale/statistics_present.controller';
			registControllers['statistics_auctionctrl'] = 'controllers/myworld/sale/statistics_auction.controller';
			registControllers['statistics_auction_agentctrl'] = 'controllers/myworld/sale/statistics_auction_agent.controller';
			registControllers['statistics_agentctrl'] = 'controllers/myworld/sale/statistics_agent.controller';
			registControllers['statistics_distributorctrl'] = 'controllers/myworld/sale/statistics_distributor.controller';
			registControllers['statistics_secondctrl'] = 'controllers/myworld/sale/statistics_second.controller';
			registControllers['statistics_second_agentctrl'] = 'controllers/myworld/sale/statistics_second_agent.controller';
			registControllers['statistics_groupbuyctrl'] = 'controllers/myworld/sale/statistics_groupbuy.controller';
			registControllers['statistics_groupbuy_agentctrl'] = 'controllers/myworld/sale/statistics_groupbuy_agent.controller';
			registControllers['purchasectrl'] = 'controllers/myworld/sale/purchase.controller';
			registControllers['purchase_agentctrl'] = 'controllers/myworld/sale/purchase_agent.controller';
			registControllers['purchase_distributorctrl'] = 'controllers/myworld/sale/purchase_distributor.controller';
			registControllers['groupctrl'] = 'controllers/myworld/sale/group.controller';
			registControllers['group_agentctrl'] = 'controllers/myworld/sale/group_agent.controller';
			registControllers['groupseckillctrl'] = 'controllers/myworld/sale/groupseckill.controller';
			registControllers['groupseckill_agentctrl'] = 'controllers/myworld/sale/groupseckill_agent.controller';
			registControllers['connectagencyctrl'] = 'controllers/myworld/sale/connectagency.controller';
			registControllers['grabctrl'] = 'controllers/myworld/sale/grab.controller';
			registControllers['grabseckillctrl'] = 'controllers/myworld/sale/grabseckill.controller';
			registControllers['auctionupctrl'] = 'controllers/myworld/sale/auctionup.controller';
			registControllers['flashsalectrl'] = 'controllers/myworld/sale/flashsale.controller';
			//auction
			registControllers['auctionctrl'] = 'controllers/myworld/auction/auction.controller';
			registControllers['auction_agentctrl'] = 'controllers/myworld/auction/auction_agent.controller';
			//newpro
			registControllers['activityctrl'] = 'controllers/myworld/newpro/activity.controller';
			registControllers['newgivectrl'] = 'controllers/myworld/newpro/newgive.controller';
			registControllers['newnoticectrl'] = 'controllers/myworld/newpro/newnotice.controller';
			registControllers['joinactivityctrl'] = 'controllers/myworld/newpro/joinactivity.controller';
			registControllers['addtestctrl'] = 'controllers/myworld/newpro/addtest.controller';
			registControllers['givectrl'] = 'controllers/myworld/newpro/give.controller';
			registControllers['savectrl'] = 'controllers/myworld/newpro/save.controller';
			registControllers['submitctrl'] = 'controllers/myworld/newpro/submit.controller';
			registControllers['adsctrl'] = 'controllers/myworld/newpro/ads.controller';
			registControllers['luckydrawctrl'] = 'controllers/myworld/newpro/luckydraw.controller';
			registControllers['luckydrawresultctrl'] = 'controllers/myworld/newpro/luckydrawresult.controller';
			registControllers['luckydrawdetailctrl'] = 'controllers/myworld/newpro/luckydrawdetail.controller';
			registControllers['lookintoctrl'] = 'controllers/myworld/newpro/lookinto.controller';
			registControllers['newprotestaboutmectrl'] = 'controllers/myworld/newpro/newprotestaboutme.controller';
			registControllers['searchpro_commonctrl'] = 'controllers/myworld/newpro/searchpro_common.controller';
			registControllers['searchpro_agentctrl'] = 'controllers/myworld/newpro/searchpro_agent.controller';
			//myworld-discount
			registControllers['issuediscountctrl'] = 'controllers/myworld/discount/issuediscount.controller';
			registControllers['adddiscountctrl'] = 'controllers/myworld/discount/adddiscount.controller';
			registControllers['search_discountctrl'] = 'controllers/myworld/discount/search_discount.controller';
			registControllers['salesctrl'] = 'controllers/myworld/discount/sales.controller';
			registControllers['sales_manufactorctrl'] = 'controllers/myworld/discount/sales_manufactor.controller';
			registControllers['addsalesctrl'] = 'controllers/myworld/discount/addsales.controller';
			registControllers['d_addctrl'] = 'controllers/myworld/discount/d_add.controller';
			registControllers['d_add_agentctrl'] = 'controllers/myworld/discount/d_add_agent.controller';
			registControllers['promotionctrl'] = 'controllers/myworld/discount/promotion.controller';
			registControllers['promotionaddupctrl'] = 'controllers/myworld/discount/promotionaddup.controller';
			registControllers['promotionaddup_add_agentctrl'] = 'controllers/myworld/discount/promotionaddup_add_agent.controller';
			registControllers['promotionaddup_agentctrl'] = 'controllers/myworld/discount/promotionaddup_agent.controller';
			//myrecord
			registControllers['creditrepayviewctrl'] = 'controllers/myrecord/creditrepayview.controller';
			registControllers['distributor_creditrepayviewctrl'] = 'controllers/myrecord/distributor_creditrepayview.controller';
			registControllers['mygroupbuyctrl'] = 'controllers/myrecord/mygroupbuy.controller';
			registControllers['mygroupbuy_agentctrl'] = 'controllers/myrecord/mygroupbuy_agent.controller';
			registControllers['mygroupbuy_dealerctrl'] = 'controllers/myrecord/mygroupbuy_dealer.controller';
			registControllers['secondkill_dealerctrl'] = 'controllers/myrecord/secondkill_dealer.controller';
			registControllers['prizewinningctrl'] = 'controllers/myrecord/prizewinning.controller';
			registControllers['virtualgoodsctrl'] = 'controllers/myrecord/virtualgoods.controller';
			registControllers['newpro_presentctrl'] = 'controllers/myrecord/newpro_present.controller';
			registControllers['teambuyctrl'] = 'controllers/myrecord/teambuy.controller';
			registControllers['secondkillctrl'] = 'controllers/myrecord/secondkill.controller';
			registControllers['secondkill_agentctrl'] = 'controllers/myrecord/secondkill_agent.controller';
			registControllers['auctiontradectrl'] = 'controllers/myrecord/auctiontrade.controller';
			registControllers['auctiontrade_agentctrl'] = 'controllers/myrecord/auctiontrade_agent.controller';
			registControllers['auctiontrade_dealerctrl'] = 'controllers/myrecord/auctiontrade_dealer.controller';
			registControllers['newpro_adsctrl'] = 'controllers/myrecord/newpro_ads.controller';
			//mine
			registControllers['sxqdctrl'] = 'controllers/myworld/mine/sxqd.controller';
			registControllers['mybrandoperatorctrl'] = 'controllers/myworld/mine/mybrandoperator.controller';
			registControllers['distributor_sxqdctrl'] = 'controllers/myworld/mine/distributor_sxqd.controller';
			registControllers['distributor_redbagctrl'] = 'controllers/myworld/mine/distributor_redbag.controller';
			registControllers['distributor_sxqd_detailctrl'] = 'controllers/myworld/mine/distributor_sxqd_detail.controller';
			registControllers['credit_repaymentctrl'] = 'controllers/myworld/mine/credit_repayment.controller';
			registControllers['credit_repayment_listctrl'] = 'controllers/myworld/mine/credit_repayment_list.controller';
			registControllers['confirm_paymentctrl'] = 'controllers/myworld/mine/confirm_payment.controller';
			registControllers['myfriendctrl'] = 'controllers/myworld/mine/myfriend.controller';
			registControllers['myfriendjxsctrl'] = 'controllers/myworld/mine/myfriendjxs.controller';
			registControllers['pbuyctrl'] = 'controllers/myworld/mine/pbuy.controller';
			registControllers['mypbuyctrl'] = 'controllers/myworld/mine/mypbuy.controller';
			registControllers['mypbuy_editctrl'] = 'controllers/myworld/mine/mypbuy_edit.controller';
			//order-form
			registControllers['buyerpaymentctrl'] = 'controllers/order/form/buyerpayment.controller';
			registControllers['sellerpaymentctrl'] = 'controllers/order/form/sellerpayment.controller';
			registControllers['seller_sendctrl'] = 'controllers/order/form/seller_send.controller';
			registControllers['orderlogisticsctrl'] = 'controllers/order/form/orderlogistics.controller';
			registControllers['refundctrl'] = 'controllers/order/form/refund.controller';
			registControllers['sellerrefundctrl'] = 'controllers/order/form/sellerrefund.controller';
			registControllers['refundtenderdetailctrl'] = 'controllers/order/form/refundtenderdetail.controller';
			registControllers['commentctrl'] = 'controllers/order/form/comment.controller';
			registControllers['comment_sellerctrl'] = 'controllers/order/form/comment_seller.controller';
			//set
			registControllers['receiptctrl'] = 'controllers/set/receipt.controller';
			registControllers['banklistctrl'] = 'controllers/set/banklist.controller';
			registControllers['stestctrl'] = 'controllers/set/stest.controller';
			registControllers['filesystemctrl'] = 'controllers/set/filesystem.controller';
			registControllers['live800ctrl'] = 'controllers/set/live800.controller';
			registControllers['livechat1ctrl'] = 'controllers/set/livechat1.controller';
			registControllers['livechat2ctrl'] = 'controllers/set/livechat2.controller';
			registControllers['livechat3ctrl'] = 'controllers/set/livechat3.controller';
			registControllers['hongbaodetailctrl'] = 'controllers/set/hongbaodetail.controller';
			registControllers['hongbaolistctrl'] = 'controllers/set/hongbaolist.controller';
			//service
			registControllers['starctrl'] = 'controllers/service/star.controller';
			registControllers['stardetailctrl'] = 'controllers/service/stardetail.controller';
			registControllers['distributionctrl'] = 'controllers/service/distribution.controller';
			registControllers['searchorderctrl'] = 'controllers/service/searchorder.controller';
			registControllers['secondhandctrl'] = 'controllers/service/secondhand.controller';
			registControllers['leasectrl'] = 'controllers/service/lease.controller';
			//aftersale
			registControllers['afallctrl'] = 'controllers/aftersale/afall.controller';
			registControllers['afallsellerctrl'] = 'controllers/aftersale/afallseller.controller';
			registControllers['proorderctrl'] = 'controllers/aftersale/proorder.controller';
			registControllers['prosaleorderctrl'] = 'controllers/aftersale/prosaleorder.controller';
			registControllers['addproctrl'] = 'controllers/aftersale/addpro.controller';
			registControllers['afbackctrl'] = 'controllers/aftersale/afback.controller';
			registControllers['afpayctrl'] = 'controllers/aftersale/afpay.controller';
			registControllers['afsruectrl'] = 'controllers/aftersale/afsrue.controller';
			registControllers['aftalkctrl'] = 'controllers/aftersale/aftalk.controller';
			registControllers['aftalkagainctrl'] = 'controllers/aftersale/aftalkagain.controller';
			registControllers['afupdatectrl'] = 'controllers/aftersale/afupdate.controller';
			//store
			registControllers['firstctrl'] = 'controllers/store/first.controller';
			registControllers['shopcustomctrl'] = 'controllers/store/shopcustom.controller';
			registControllers['shopmsgctrl'] = 'controllers/store/shopmsg.controller';

			//注册服务路径
			var registServices = new Object();
			registServices['Home'] = 'services/tabs/home.service';
			registServices['Classes'] = 'services/tabs/classes.service';
			registServices['Findus'] = 'services/tabs/findus.service';
			registServices['Addcart'] = 'services/tabs/addcart.service';
			registServices['Center'] = 'services/tabs/center.service';
			registServices['T_login'] = 'services/tabs/t_login.service';
			registServices['T_register'] = 'services/tabs/t_register.service';
			registServices['T_f_password'] = 'services/tabs/t_f_password.service';
			registServices['Tab_cart'] = 'services/tabs/tab_cart.service';

			//myinfo-导航子页面
			registServices['T_message'] = 'services/myinfo/t_message.service';
			registServices['Personal_data'] = 'services/myinfo/t_personal_data.service';
			registServices['Store_data'] = 'services/myinfo/t_store_data.service';
			registServices['Searchpro_manufactor'] = 'services/myinfo/searchpro_manufactor.service';
			registServices['Message_detail'] = 'services/myinfo/message_detail.service';
			//worldsetting-导航子页面
			registServices['T_set'] = 'services/worldsetting/t_set.service';
			registServices['Linkemail'] = 'services/worldsetting/linkemail.service';
			registServices['Linkwx'] = 'services/worldsetting/linkwx.service';
			registServices['Linkqq'] = 'services/worldsetting/linkqq.service';
			registServices['T_address_add_yh'] = 'services/worldsetting/t_address_add_yh.service';
			registServices['T_address_add_fp'] = 'services/worldsetting/t_address_add_fp.service';
			registServices['T_address_add_fp_buyer'] = 'services/worldsetting/t_address_add_fp_buyer.service';
			registServices['T_address'] = 'services/worldsetting/t_address.service';
			registServices['T_address_seller'] = 'services/worldsetting/t_address_seller.service';
			registServices['T_address_add'] = 'services/worldsetting/t_address_add.service';
			registServices['T_address_add_seller'] = 'services/worldsetting/t_address_add_seller.service';
			registServices['Logistics'] = 'services/worldsetting/logistics.service';
			registServices['Logistics_Edit'] = 'services/worldsetting/logistics-edit.service';
			registServices['Logistics_Modal'] = 'services/worldsetting/logistics-modal.service';
			registServices['T_about'] = 'services/worldsetting/t_about.service';
			registServices['Center_list'] = 'services/worldsetting/center_list.service';
			registServices['Service_center'] = 'services/worldsetting/t_service_center.service';
			registServices['Child_center'] = 'services/worldsetting/child-service-center.service';
			registServices['Share'] = 'services/worldsetting/share.service';
			registServices['Customqq'] = 'services/worldsetting/customqq.service';
			registServices['CustomqqAdd'] = 'services/worldsetting/customqqAdd.service';
			registServices['Custom_comment'] = 'services/worldsetting/custom_comment.service';
			registServices['Custom_dialog'] = 'services/worldsetting/custom_dialog.service';
			registServices['Custom_list'] = 'services/worldsetting/custom_list.service';
			registServices['T_password'] = 'services/worldsetting/t_password.service';
			registServices['Pay_password'] = 'services/worldsetting/pay_password.service';
			//worldservice--导航子页面
			registServices['Transfer'] = 'services/worldservice/transfer.service';
			registServices['Transfer_publish'] = 'services/worldservice/transfer_publish.service';
			registServices['Transferdetail'] = 'services/worldservice/transferdetail.service';
			registServices['Newproductpost_test'] = 'services/worldservice/newproductpost_test.service';
			registServices['Newpropromotions_goods'] = 'services/worldservice/newpropromotions_goods.service';
			registServices['Newpropromotions_info'] = 'services/worldservice/newpropromotions_info.service';
			registServices['Newproductpost_give'] = 'services/worldservice/newproductpost_give.service';
			registServices['Newpropromotions'] = 'services/worldservice/newpropromotions.service';
			registServices['Show'] = 'services/worldservice/show.service';
			registServices['Showdetail'] = 'services/worldservice/showdetail.service';
			registServices['Industryrankings'] = 'services/worldservice/industryrankings.service';
			registServices['Industryrankingsone'] = 'services/worldservice/industryrankingsone.service';
			registServices['Industryrankingsdetail'] = 'services/worldservice/industryrankingsdetail.service';
			registServices['Proconsult'] = 'services/worldservice/proconsult.service';
			registServices['Proconsultproblem'] = 'services/worldservice/proconsultproblem.service';
			registServices['Proconsultservice'] = 'services/worldservice/proconsultservice.service';
			registServices['Recruitment'] = 'services/worldservice/recruitment.service';
			registServices['Recruitmentbuild'] = 'services/worldservice/recruitmentbuild.service';
			registServices['Recruitmentdetail'] = 'services/worldservice/recruitmentdetail.service';
			registServices['Recruitmentmanage'] = 'services/worldservice/recruitmentmanage.service';
			registServices['Recruitmentsearchjob'] = 'services/worldservice/recruitmentsearchjob.service';
			registServices['Recruitmentsearchresume'] = 'services/worldservice/recruitmentsearchresume.service';
			registServices['Salesoutlets'] = 'services/worldservice/salesoutlets.service';
			registServices['Seckill'] = 'services/worldservice/seckill.service';
			registServices['Seckilldetail'] = 'services/worldservice/seckilldetail.service';
			registServices['Seckillgoods'] = 'services/worldservice/seckill_goods.service';
			registServices['Agent'] = 'services/worldservice/agent.service';
			registServices['Groupbuy'] = 'services/worldservice/groupbuy.service';
			registServices['Groupbuydetail'] = 'services/worldservice/groupbuydetail.service';
			registServices['Liveplay'] = 'services/worldservice/liveplay.service';
			registServices['Memberaddress'] = 'services/worldservice/memberaddress.service';
			registServices['Myproduct'] = 'services/worldservice/myproduct.service';
			registServices['Myproductdetail'] = 'services/worldservice/myproductdetail.service';
			registServices['Panicauction'] = 'services/worldservice/panicauction.service';
			registServices['Panicauctiondetail'] = 'services/worldservice/panicauctiondetail.service';
			registServices['Panicauction_pinfo'] = 'services/worldservice/panicauction_pinfo.service';
			registServices['Panicauction_pay'] = 'services/worldservice/panicauction_pay.service';
			registServices['Activitysecond'] = 'services/worldservice/activitysecond.service';
			registServices['Activitythree'] = 'services/worldservice/activitythree.service';
			registServices['Panicbuying'] = 'services/worldservice/panicbuying.service';
			registServices['Previewamount'] = 'services/worldservice/previewamount.service';
			registServices['Previewamountpro'] = 'services/worldservice/previewamountpro.service';
			registServices['Previewamountrank'] = 'services/worldservice/previewamountrank.service';
			registServices['Promarket'] = 'services/worldservice/promarket.service';
			registServices['Promotions'] = 'services/worldservice/promotions.service';
			registServices['Productextent'] = 'services/worldservice/productextent.service';
			registServices['Productextentdetail'] = 'services/worldservice/productextentdetail.service';
			registServices['Promotionsdetail'] = 'services/worldservice/promotionsdetail.service';
			registServices['Videoplaying'] = 'services/worldservice/videoplaying.service';
			registServices['Unsalableused'] = 'services/worldservice/unsalableused.service';
			registServices['Unsalablepro'] = 'services/worldservice/unsalablepro.service';
			registServices['Warehouse_info'] = 'services/worldservice/warehouse-info.service';
			registServices['Themember'] = 'services/worldservice/themember.service';
			registServices['Train'] = 'services/worldservice/train.service';
			registServices['Exchange_interaction'] = 'services/worldservice/exchange_interaction.service';
			registServices['Bbs'] = 'services/worldservice/bbs.service';
			registServices['Exchange_interaction_chat'] = 'services/worldservice/exchange_interaction_chat.service';
			registServices['Groupbuy_goods'] = 'services/worldservice/groupbuy_goods.service';
			registServices['NewsendDetail'] = 'services/worldservice/newsend_detail.service';
			registServices['NewnoticeDetail'] = 'services/worldservice/newnotice_detail.service';
			registServices['NewtestDetail'] = 'services/worldservice/newtest_detail.service';
			//aboutme
			registServices['Redpocket'] = 'services/aboutme/redpocket.service';
			registServices['Sendredpocket'] = 'services/aboutme/sendredpocket.service';
			registServices['Predeposit'] = 'services/aboutme/predeposit.service';
			registServices['Predepositwater'] = 'services/aboutme/predepositwater.service';
			registServices['Mypoint'] = 'services/aboutme/mypoint.service';
			registServices['Pointgoods'] = 'services/aboutme/pointgoods.service';
			registServices['Pointorder'] = 'services/aboutme/pointorder.service';
			registServices['Favorite'] = 'services/aboutme/favorite.service';
			registServices['Mybrowsing'] = 'services/aboutme/mybrowsing.service';
			registServices['Couponlist'] = 'services/aboutme/couponlist.service';
			registServices['Predepositdetails'] = 'services/aboutme/predepositdetails.service';
			registServices['Mypointdetail'] = 'services/aboutme/mypointdetail.service';
			registServices['Exchangerecord'] = 'services/aboutme/exchangerecord.service';
			registServices['Predepositresult'] = 'services/aboutme/predepositresult.service';
			
			//order/goods
			registServices['Productsearch'] = 'services/order/goods/productsearch.service';
			registServices['Productdetail'] = 'services/order/goods/productdetail.service';
			registServices['Recommend_info'] = 'services/order/goods/recommend_info.service';
			registServices['Productdetail_recommend'] = 'services/order/goods/productdetail_recommend.service';
			registServices['Product_info'] = 'services/order/goods/product_info.service';
			registServices['Wenda'] = 'services/order/goods/wenda.service';
			registServices['Seckill_pinfo'] = 'services/order/goods/seckill_pinfo.service';
			registServices['Activity_info'] = 'services/order/goods/activity_info.service';
			registServices['Groupbuy_pinfo'] = 'services/order/goods/groupbuy_pinfo.service';
			registServices['Newnotice_pinfo'] = 'services/order/goods/newnotice_pinfo.service';
			registServices['Newsend_pinfo'] = 'services/order/goods/newsend_pinfo.service';
			//order/store
			registServices['Hotcat'] = 'services/order/store/hotcat.service';
			registServices['Shopinfo'] = 'services/order/store/shopinfo.service';
			//discount
			registServices['Issuediscount'] = 'services/myworld/discount/issuediscount.service';
			registServices['Adddiscount'] = 'services/myworld/discount/adddiscount.service';
			registServices['Search_discount'] = 'services/myworld/discount/search_discount.service';
			registServices['Sales'] = 'services/myworld/discount/sales.service';
			registServices['Sales_manufactor'] = 'services/myworld/discount/sales_manufactor.service';
			registServices['Addsales'] = 'services/myworld/discount/addsales.service';
			registServices['Promotion'] = 'services/myworld/discount/promotion.service';
			registServices['D_add'] = 'services/myworld/discount/d_add.service';
			registServices['D_add_agent'] = 'services/myworld/discount/d_add_agent.service';
			registServices['Promotionaddup'] = 'services/myworld/discount/promotionaddup.service';
			registServices['Promotionaddup_add_agent'] = 'services/myworld/discount/promotionaddup_add_agent.service';
			registServices['Promotionaddup_agent'] = 'services/myworld/discount/promotionaddup_agent.service';
			//myrecord
			registServices['Creditrepayview'] = 'services/myrecord/creditrepayview.service';
			registServices['Distributor_creditrepayview'] = 'services/myrecord/distributor_creditrepayview.service';
			registServices['Mygroupbuy'] = 'services/myrecord/mygroupbuy.service';
			registServices['Mygroupbuy_agent'] = 'services/myrecord/mygroupbuy_agent.service';
			registServices['Mygroupbuy_dealer'] = 'services/myrecord/mygroupbuy_dealer.service';
			registServices['Secondkill_dealer'] = 'services/myrecord/secondkill_dealer.service';
			registServices['Prizewinning'] = 'services/myrecord/prizewinning.service';
			registServices['Virtualgoods'] = 'services/myrecord/virtualgoods.service';
			registServices['Newpro_present'] = 'services/myrecord/newpro_present.service';
			registServices['Teambuy'] = 'services/myrecord/teambuy.service';
			registServices['Secondkill'] = 'services/myrecord/secondkill.service';
			registServices['Secondkill_agent'] = 'services/myrecord/secondkill_agent.service';
			registServices['Auctiontrade'] = 'services/myrecord/auctiontrade.service';
			registServices['Auctiontrade_agent'] = 'services/myrecord/auctiontrade_agent.service';
			registServices['Auctiontrade_dealer'] = 'services/myrecord/auctiontrade_dealer.service';
			registServices['Newpro_ads'] = 'services/myrecord/newpro_ads.service';
			//catalog
			registServices['Myworldindex'] = 'services/myworld/catalog/myworldindex.service';
			registServices['Mydeposit'] = 'services/myworld/catalog/mydeposit.service';
			registServices['Productmanager'] = 'services/myworld/catalog/productmanager.service';
			registServices['Productmanager_publish'] = 'services/myworld/catalog/productmanager_publish.service';
			registServices['Productmanager_publish_more'] = 'services/myworld/catalog/productmanager_publish_more.service';
			registServices['Productmanager_sale'] = 'services/myworld/catalog/productmanager_sale.service';
			registServices['Productmanager_sale_edit'] = 'services/myworld/catalog/productmanager_sale_edit.service';
			registServices['Productmanager_brand'] = 'services/myworld/catalog/productmanager_brand.service';
			registServices['Productmanager_brand_agent'] = 'services/myworld/catalog/productmanager_brand_agent.service';
			registServices['Productmanager_brand_edit'] = 'services/myworld/catalog/productmanager_brand_edit.service';
			registServices['Branddetail'] = 'services/myworld/catalog/branddetail.service';
			registServices['Productmanager_brand_agent_edit'] = 'services/myworld/catalog/productmanager_brand_agent_edit.service';
			registServices['Productmanager_sort'] = 'services/myworld/catalog/productmanager_sort.service';
			registServices['Productmanager_sort_edit'] = 'services/myworld/catalog/productmanager_sort_edit.service';
			registServices['Productmanager_waitsale'] = 'services/myworld/catalog/productmanager_waitsale.service';
			registServices['Productmanager_waitsale_edit'] = 'services/myworld/catalog/productmanager_waitsale_edit.service';
			//我的大全--busniess
			registServices['Starbusiness_publicity'] = 'services/myworld/business/starbusiness_publicity.service';
			registServices['Starbusiness_publicity_apply'] = 'services/myworld/business/starbusiness_publicity_apply.service';
			registServices['Starbusiness_pushinfo'] = 'services/myworld/business/starbusiness_pushinfo.service';
			registServices['Starbusiness_pushinfo'] = 'services/myworld/business/starbusiness_pushinfo.service';
			registServices['Starbusiness_pushinfo_apply'] = 'services/myworld/business/starbusiness_pushinfo_apply.service';
			registServices['Wanttoagent'] = 'services/myworld/business/wanttoagent.service';
			registServices['Wanttodistributor'] = 'services/myworld/business/wanttodistributor.service';
			registServices['Employeemanager'] = 'services/myworld/business/employeemanager.service';
			registServices['Employeemanager_add'] = 'services/myworld/business/employeemanager_add.service';
			registServices['Employeemanager_rights'] = 'services/myworld/business/employeemanager_rights.service';
			registServices['Employeemanager_rights_add'] = 'services/myworld/business/employeemanager_rights_add.service';
			//我的大全--agent
			registServices['Myagent'] = 'services/myworld/agent/myagent.service';
			registServices['Myagentsale'] = 'services/myworld/agent/myagentsale.service';
			registServices['Myagent_blacklist'] = 'services/myworld/agent/myagent_blacklist.service';
			registServices['Myagent_order'] = 'services/myworld/agent/myagent_order.service';
			registServices['Myagent_add'] = 'services/myworld/agent/myagent_add.service';
			registServices['Myagent_list'] = 'services/myworld/agent/myagent_list.service';
			registServices['Myagent_publish'] = 'services/myworld/agent/myagent_publish.service';
			//我的大全--distributor
			registServices['Distributor'] = 'services/myworld/distributor/distributor.service';
			registServices['Distributor_blacklist'] = 'services/myworld/distributor/distributor_blacklist.service';
			registServices['Distributor_order'] = 'services/myworld/distributor/distributor_order.service';
			registServices['Distributor_add'] = 'services/myworld/distributor/distributor_add.service';
			registServices['Distributor_list'] = 'services/myworld/distributor/distributor_list.service';
			registServices['Distributor_publish'] = 'services/myworld/distributor/distributor_publish.service';
			registServices['Myagentdistributor_order'] = 'services/myworld/distributor/myagentdistributor_order.service';
			//sale
			registServices['Statistics'] = 'services/myworld/sale/statistics.service';
			registServices['Statistics_test'] = 'services/myworld/sale/statistics_test.service';
			registServices['Statistics_present'] = 'services/myworld/sale/statistics_present.service';
			registServices['Statistics_auction'] = 'services/myworld/sale/statistics_auction.service';
			registServices['Statistics_auction_agent'] = 'services/myworld/sale/statistics_auction_agent.service';
			registServices['Statistics_agent'] = 'services/myworld/sale/statistics_agent.service';
			registServices['Statistics_distributor'] = 'services/myworld/sale/statistics_distributor.service';
			registServices['Statistics_second'] = 'services/myworld/sale/statistics_second.service';
			registServices['Statistics_second_agent'] = 'services/myworld/sale/statistics_second_agent.service';
			registServices['Statistics_groupbuy'] = 'services/myworld/sale/statistics_groupbuy.service';
			registServices['Statistics_groupbuy_agent'] = 'services/myworld/sale/statistics_groupbuy_agent.service';
			registServices['Purchase'] = 'services/myworld/sale/purchase.service';
			registServices['Purchase_agent'] = 'services/myworld/sale/purchase_agent.service';
			registServices['Purchase_distributor'] = 'services/myworld/sale/purchase_distributor.service';
			registServices['Group'] = 'services/myworld/sale/group.service';
			registServices['Group_agent'] = 'services/myworld/sale/group_agent.service';
			registServices['Groupseckill'] = 'services/myworld/sale/groupseckill.service';
			registServices['Groupseckill_agent'] = 'services/myworld/sale/groupseckill_agent.service';
			registServices['Connectagency'] = 'services/myworld/sale/connectagency.service';
			registServices['Auctionup'] = 'services/myworld/sale/auctionup.service';
			registServices['Flashsale'] = 'services/myworld/sale/flashsale.service';
			registServices['Grab'] = 'services/myworld/sale/grab.service';
			registServices['Grabseckill'] = 'services/myworld/sale/grabseckill.service';
			//auction
			registServices['Auction'] = 'services/myworld/auction/auction.service';
			registServices['Auction_agent'] = 'services/myworld/auction/auction_agent.service';
			//newpro
			registServices['Activity'] = 'services/myworld/newpro/activity.service';
			registServices['Newgive'] = 'services/myworld/newpro/newgive.service';
			registServices['Newnotice'] = 'services/myworld/newpro/newnotice.service';
			registServices['Addtest'] = 'services/myworld/newpro/addtest.service';
			registServices['Joinactivity'] = 'services/myworld/newpro/joinactivity.service';
			registServices['Give'] = 'services/myworld/newpro/give.service';
			registServices['Save'] = 'services/myworld/newpro/save.service';
			registServices['Submit'] = 'services/myworld/newpro/submit.service';
			registServices['Ads'] = 'services/myworld/newpro/ads.service';
			registServices['Luckydraw'] = 'services/myworld/newpro/luckydraw.service';
			registServices['Luckydrawresult'] = 'services/myworld/newpro/luckydrawresult.service';
			registServices['Luckydrawdetail'] = 'services/myworld/newpro/luckydrawdetail.service';
			registServices['Lookinto'] = 'services/myworld/newpro/lookinto.service';
			registServices['Newprotestaboutme'] = 'services/myworld/newpro/newprotestaboutme.service';
			registServices['Searchpro_common'] = 'services/myworld/newpro/searchpro_common.service';
			registServices['Searchpro_agent'] = 'services/myworld/newpro/searchpro_agent.service';
			//mine
			registServices['Sxqd'] = 'services/myworld/mine/sxqd.service';
			registServices['Mybrandoperator'] = 'services/myworld/mine/mybrandoperator.service';
			registServices['Distributor_sxqd'] = 'services/myworld/mine/distributor_sxqd.service';
			registServices['Distributor_redbag'] = 'services/myworld/mine/distributor_redbag.service';
			registServices['Distributor_sxqd_detail'] = 'services/myworld/mine/distributor_sxqd_detail.service';
			registServices['Credit_repayment'] = 'services/myworld/mine/credit_repayment.service';
			registServices['Credit_repayment_list'] = 'services/myworld/mine/credit_repayment_list.service';
			registServices['Confirm_payment'] = 'services/myworld/mine/confirm_payment.service';
			registServices['Myfriend'] = 'services/myworld/mine/myfriend.service';
			registServices['Myfriendjxs'] = 'services/myworld/mine/myfriendjxs.service';
			registServices['Pbuy'] = 'services/myworld/mine/pbuy.service';
			registServices['Mypbuy'] = 'services/myworld/mine/mypbuy.service';
			registServices['Mypbuy_edit'] = 'services/myworld/mine/mypbuy_edit.service';
			//order-form
			registServices['Buyerpayment'] = 'services/order/form/buyerpayment.service';
			registServices['Sellerpayment'] = 'services/order/form/sellerpayment.service';
			registServices['Seller_send'] = 'services/order/form/seller_send.service';
			registServices['Orderlogistics'] = 'services/order/form/orderlogistics.service';
			registServices['Refund'] = 'services/order/form/refund.service';
			registServices['Sellerrefund'] = 'services/order/form/sellerrefund.service';
			registServices['Refundtenderdetail'] = 'services/order/form/refundtenderdetail.service';
			registServices['Comment'] = 'services/order/form/comment.service';
			registServices['Comment_seller'] = 'services/order/form/comment_seller.service';
			//set
			registServices['Receipt'] = 'services/set/receipt.service';
			registServices['Banklist'] = 'services/set/banklist.service';
			registServices['Stest'] = 'services/set/stest.service';
			registServices['Filesystem'] = 'services/set/filesystem.service';
			registServices['Live800'] = 'services/set/live800.service';
			registServices['Livechat1'] = 'services/set/livechat1.service';
			registServices['Livechat2'] = 'services/set/livechat2.service';
			registServices['Livechat3'] = 'services/set/livechat3.service';
			registServices['Hongbaodetail'] = 'services/set/hongbaodetail.service';
			registServices['Hongbaolist'] = 'services/set/hongbaolist.service';
			//service
			registServices['Star'] = 'services/service/star.service';
			registServices['Stardetail'] = 'services/service/stardetail.service';
			registServices['Distribution'] = 'services/service/distribution.service';
			registServices['Searchorder'] = 'services/service/searchorder.service';
			registServices['Secondhand'] = 'services/service/secondhand.service';
			registServices['Lease'] = 'services/service/lease.service';
			//aftersale
			registServices['Afall'] = 'services/aftersale/afall.service';
			registServices['Afallseller'] = 'services/aftersale/afallseller.service';
			registServices['Proorder'] = 'services/aftersale/proorder.service';
			registServices['Prosaleorder'] = 'services/aftersale/prosaleorder.service';
			registServices['Addpro'] = 'services/aftersale/addpro.service';
			registServices['Afback'] = 'services/aftersale/afback.service';
			registServices['Afpay'] = 'services/aftersale/afpay.service';
			registServices['Afsrue'] = 'services/aftersale/afsrue.service';
			registServices['Aftalk'] = 'services/aftersale/aftalk.service';
			registServices['Aftalkagain'] = 'services/aftersale/aftalkagain.service';
			registServices['Afupdate'] = 'services/aftersale/afupdate.service';
			//store
			registServices['First'] = 'services/store/first.service';
			registServices['Shopcustom'] = 'services/store/shopcustom.service';
			registServices['Shopmsg'] = 'services/store/shopmsg.service';

			//所有文件按需加载
			//app.controller = $controllerProvider.register;
			//app.directive = $compileProvider.directive;
			//app.filter = $filterProvider.register;
			//app.factory = $provide.factory;
			//app.service = $provide.service;
			//app.constant = $provide.constant;
			//app.value = $provide.value;

			//按需加载Controller
			app.registerController = $controllerProvider.register;
			app.registerService = $provide.factory;
			app.loadControllerJs = function(name) {
				if(registControllers[name] == undefined) return;
				var controllerJs = './' + registControllers[name];
				return function($rootScope, $q) {
					var def = $q.defer(),
						deps = [];
					angular.isArray(controllerJs) ? (deps = controllerJs) : deps.push(controllerJs);
					require(deps, function() {
						$rootScope.$apply(function() {
							def.resolve();
						});
					});
					return def.promise;
				};
			};

			//注册文件
			app.loadServiceJs = function(name) {
				if(registServices[name] == undefined) return;
				var serviceJs = './' + registServices[name];
				return function($rootScope, $q) {
					var def = $q.defer(),
						deps = [];
					angular.isArray(serviceJs) ? (deps = serviceJs) : deps.push(serviceJs);
					require(deps, function() {
						$rootScope.$apply(function() {
							def.resolve();
						});
					});
					return def.promise;
				};
			};
		})

		//系统配置
		app.config(function($ionicConfigProvider) {

			// Ionic uses AngularUI Router which uses the concept of states
			// Learn more here: https://github.com/angular-ui/ui-router
			// Set up the various states which the app can be in.
			// Each state's controller can be found in controllers.js

			//定义样式
			$ionicConfigProvider.platform.ios.views.transition('ios');
			$ionicConfigProvider.platform.ios.backButton.icon('ion-ios-arrow-back');
			$ionicConfigProvider.platform.ios.backButton.text('');
			$ionicConfigProvider.platform.ios.form.checkbox('circle');
			$ionicConfigProvider.platform.ios.form.toggle('大');
			$ionicConfigProvider.platform.ios.tabs.style('standard');
			$ionicConfigProvider.platform.ios.tabs.position('bottom');
			$ionicConfigProvider.platform.ios.navBar.alignTitle('center');
			$ionicConfigProvider.platform.ios.navBar.positionPrimaryButtons('left');
			$ionicConfigProvider.platform.ios.navBar.positionSecondaryButtons('right');
			
			$ionicConfigProvider.platform.android.views.transition('ios');
			$ionicConfigProvider.platform.android.backButton.icon('ion-ios-arrow-back');
			$ionicConfigProvider.platform.android.backButton.text('');
			$ionicConfigProvider.platform.android.form.checkbox('circle');
			$ionicConfigProvider.platform.android.form.toggle('大');
			$ionicConfigProvider.platform.android.tabs.style('standard');
			$ionicConfigProvider.platform.android.tabs.position('bottom');
			$ionicConfigProvider.platform.android.navBar.alignTitle('center');
			$ionicConfigProvider.platform.android.navBar.positionPrimaryButtons('left');
			$ionicConfigProvider.platform.android.navBar.positionSecondaryButtons('right');
			$ionicConfigProvider.views.maxCache(4);//全局禁用，原来为0
			$ionicConfigProvider.views.swipeBackEnabled(false); //关闭侧滑
			$ionicConfigProvider.scrolling.jsScrolling(true);
		})

		app.config(function($httpProvider) {
			// 重写头部
			$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
			$httpProvider.defaults.timeout = 30000; //30秒超时
			/**
			 * The workhorse; converts an object to x-www-form-urlencoded serialization.
			 * @param {Object} obj
			 * @return {String}
			 */
			var param = function(obj) {
				var query = '',
					name, value, fullSubName, subName, subValue, innerObj, i;

				for(name in obj) {
					value = obj[name];

					if(value instanceof Array) {
						for(i = 0; i < value.length; ++i) {
							subValue = value[i];
							fullSubName = name + '[' + i + ']';
							innerObj = {};
							innerObj[fullSubName] = subValue;
							query += param(innerObj) + '&';
						}
					} else if(value instanceof Object) {
						for(subName in value) {
							subValue = value[subName];
							fullSubName = name + '[' + subName + ']';
							innerObj = {};
							innerObj[fullSubName] = subValue;
							query += param(innerObj) + '&';
						}
					} else if(value !== undefined && value !== null)
						query += encodeURIComponent(name) + '=' + encodeURIComponent(value) + '&';
				}

				return query.length ? query.substr(0, query.length - 1) : query;
			};

			// Override $http service's default transformRequest
			$httpProvider.defaults.transformRequest = [function(data) {
				return angular.isObject(data) && String(data) !== '[object File]' ? param(data) : data;
			}];

			//加载状态
			//$rootScope全局变量
			$httpProvider.interceptors.push(function($rootScope) {
				return {
					//请求数据，显示loading
					request: function(config) {
						//$broadcast广播给所有控制器。
						if(config.method == "POST") {
							if(config.isShow == true)
								$rootScope.$broadcast('loading:show');
						}
						return config;
					},
					//请求异常
					requestError: function(rejection) {
						//$broadcast广播给所有控制器。
						if(rejection.config.method == "POST") {
							$rootScope.$broadcast('loading:hide');
						}
						return rejection;
					},
					//响应数据之后，关闭loading
					response: function(response) {
						if(response.config.method == "POST") {
							$rootScope.$broadcast('loading:hide');
						}
						return response;
					},
					//应答异常
					responseError: function(rejection) {
						//$broadcast广播给所有控制器。
						if(rejection.config.method == "POST") {
							$rootScope.$broadcast('loading:hide');
						}
						return rejection;
					}
				}
			})
		})

		app.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) {

			//初始化路由
			var tabs = ['home', 'classes', 'findus', 'cart', 'center'];

			function master_states(name, ctrl, urls, template, services, title) {
				//tabs的页面
				var stateName = 'tab.' + name;
				var tabName = 'tab-' + name;
				var objs = new Object();
				objs['deps'] = app.loadControllerJs(ctrl); //字符串模式
				for(var i = 0; i < services.length; i++) {
					objs['depf' + i] = app.loadServiceJs(services[i]); //字符串模式
				}
				var views = new Object();
				views[tabName] = new Object();
				views[tabName]['templateUrl'] = template;
				views[tabName]['controller'] = ctrl;
				views[tabName]['resolve'] = objs;
				var data = new Object();
				data['title'] = title == undefined ? '未来万家商城' : title;
				$stateProvider.state(stateName, {
					url: urls,
					views: views,
					data: data
				})
			}

			function make_states(name, ctrl, urls, template, services) {
				//同步
				for(var i = 0; i < tabs.length; i++) {
					var stateName = 'tab.' + tabs[i] + '-' + name;
					var tabName = 'tab-' + tabs[i];
					var objs = new Object();
					objs['deps'] = app.loadControllerJs(ctrl); //字符串模式
					for(var j = 0; j < services.length; j++) {
						objs['depf' + j] = app.loadServiceJs(services[j]); //数组模式
					}
					var views = new Object();
					views[tabName] = new Object();
					views[tabName]['templateUrl'] = template;
					views[tabName]['controller'] = ctrl;
					views[tabName]['resolve'] = objs;
					$stateProvider.state(stateName, {
						url: urls,
						views: views
					})
				}
			}

			$stateProvider
				/*母版页*/
				.state('tab', {
					url: '/tab',
					abstract: true,
					templateUrl: 'templates/tabs/tabs.html',
					resolve: {
						deps: app.loadControllerJs('tabsctrl')
					}
				})

			/**************************************UI路由-tabs-子页面**************************************/
			master_states("home", "homectrl", "/home", 'templates/tabs/tab-home.html', ['Home'], '未来万家商城');
			master_states("classes", "classesctrl", "/classes", 'templates/tabs/tab-classes.html', ['Classes'], '分类');
			master_states("findus", "findusctrl", "/findus", 'templates/tabs/tab-findus.html', ['Findus'], '找到我们');
			master_states("cart", "tab_cartctrl", "/cart", 'templates/tabs/tab_cart.html', ['Tab_cart'], '购物车');
			master_states("center", "centerctrl", "/center", 'templates/tabs/tab-center.html', ['Center'], '买家中心');

			/**************************************UI路由-tabs-子页面**************************************/
			make_states("t-login", "t_loginctrl", "/login", 'templates/tabs/t-login.html', ['T_login'], '登录');
			make_states("t-login-auth", "t_login_authctrl", "/loginauth/:uuid/:type/:needVerifyCode", 'templates/tabs/t-login-auth.html', ['T_login'], '信任登录');
			make_states("t-register", "t_registerctrl", "/t-register/:thirdid/:thirdtype", 'templates/tabs/t-register.html', ['T_register'], '注册');
			make_states("t-f-password", "t_f_passwordctrl", "/t-f-password", 'templates/tabs/t-f-password.html', ['T_f_password'], '忘记密码');
			make_states("tab_cart", "tab_cartctrl", "/tab_cart", 'templates/tabs/tab_cart.html', ['Tab_cart'], '购物车');
			make_states("addcart", "addcartctrl", "/addcart", 'templates/tabs/addcart.html', ['Addcart'], '加入购物车');
			make_states("membermap", "membermapctrl", "/member_map/:center", 'templates/tabs/member_map.html', ['Findus'], '会员分布');
			make_states("appdown", "appdownctrl", "/appdown", 'templates/tabs/appdown.html', [], 'app下载');

			/**************************************UI路由-myinfo-子页面**************************************/
			make_states("t-message", "t_messagectrl", "/t-message/:tab", 'templates/myinfo/t-message.html', ['T_message'], '站内信');
			make_states("t-personal-data", "personal_datactrl", "/t-personal-data", 'templates/myinfo/t-personal-data.html', ['Personal_data'], '个人资料');
			make_states("t-store-data", "store_datactrl", "/t-store-data", 'templates/myinfo/t-store-data.html', ['Store_data', 'Center'], '企业资料');
			make_states("warehouse-upgrade", "warehouse_upgradectrl", "/warehouse-upgrade", 'templates/myinfo/warehouse_upgrade.html', ['Store_data', 'Center'], '分仓转授权中心');
			make_states("searchpro-manufactor", "searchpro_manufactorctrl", "/searchpro-manufactor", 'templates/myinfo/searchpro_manufactor.html', ['Searchpro_manufactor'], '选择旗舰店');
			make_states("t-message-detail", "message_detailctrl", "/t-message-detail/:mail_id", 'templates/myinfo/t-message-detail.html', ['Message_detail'], '站内信');

			/**************************************UI路由-worldsetting--子页面**************************************/
			make_states("t-set", "t_setctrl", "/t-set", 'templates/worldsetting/t-set.html', ['T_set'], '设置');
			make_states("linkemail", "linkemailctrl", "/linkemail", 'templates/worldsetting/linkemail.html', ['Linkemail'], '邮箱绑定');
			make_states("linkwx", "linkwxctrl", "/linkwx", 'templates/worldsetting/linkwx.html', ['Linkwx'], '微信绑定');
			make_states("linkqq", "linkqqctrl", "/linkqq", 'templates/worldsetting/linkqq.html', ['Linkqq'], 'QQ绑定');
			make_states("t-address-add-yh", "address_add_yhctrl", "/t-address-add-yh/:id", 'templates/worldsetting/t-address-add-yh.html', ['T_address_add_yh'], '银行账号地址编辑');
			make_states("t-address-add-fp", "address_add_fpctrl", "/t-address-add-fp", 'templates/worldsetting/t-address-add-fp.html', ['T_address_add_fp'], '增票资质');
			make_states("t-address-add-fp-buyer", "address_add_fp_buyerctrl", "/t-address-add-fp-buyer/:id", 'templates/worldsetting/t-address-add-fp-buyer.html', ['T_address_add_fp_buyer'], '发票税率设置');
			make_states("t-address", "t_addressctrl", "/t-address", 'templates/worldsetting/t-address.html', ['T_address'], '地址管理');
			make_states("t_address_seller", "t_address_sellerctrl", "/t_address_seller", 'templates/worldsetting/t_address_seller.html', ['T_address_seller'], '地址管理');
			make_states("t-address-add", "address_addctrl", "/t-address-add/:id", 'templates/worldsetting/t-address-add.html', ['T_address_add'], '地址编辑');
			make_states("t_address_add_seller", "address_add_sellerctrl", "/t_address_add_seller/:id", 'templates/worldsetting/t_address_add_seller.html', ['T_address_add_seller'], '地址编辑');
			make_states("logistics", "logisticsctrl", "/logistics", 'templates/worldsetting/logistics.html', ['Logistics'], '物流公司');
			make_states("logistics-edit", "logistics_editctrl", "/logistics-edit/:id", 'templates/worldsetting/logistics-edit.html', ['Logistics_Edit'], '添加/编辑运费模板');
			make_states("logistics-modal", "logistics_modalctrl", "/logistics-modal", 'templates/worldsetting/logistics-modal.html', ['Logistics_Modal'], '运费模板');
			make_states("t-about", "t_aboutctrl", "/t-about", 'templates/worldsetting/t-about.html', ['T_about'], '关于我们');
			make_states("center_list", "center_listctrl", "/center_list", 'templates/worldsetting/center_list.html', ['Center_list'], '客服列表');
			make_states("t-service-center", "service_centerctrl", "/t-service-center", 'templates/worldsetting/t-service-center.html', ['Service_center'], '客服中心');
			make_states("child-service-center", "child_centerctrl", "/child-service-center/:article_id/:title", 'templates/worldsetting/child-service-center.html', ['Child_center'], '客服中心');
			make_states("share", "sharectrl", "/share", 'templates/worldsetting/share.html', ['Share'], '一键分享');
			make_states("customqq", "customqqctrl", "/customqq", 'templates/worldsetting/customqq.html', ['Customqq'], '客服联系方式'); //qq
			make_states("customqqAdd", "customqqAddctrl", "/customqqAdd/:id/:type", 'templates/worldsetting/customqqAdd.html', ['CustomqqAdd'], '客服QQ'); //qq
			make_states("custom_comment", "custom_commentctrl", "/custom_comment/:id", 'templates/worldsetting/custom_comment.html', ['Custom_comment'], '客服留言'); //给客服留言
			make_states("custom_dialog", "custom_dialogctrl", "/custom_dialog/:id", 'templates/worldsetting/custom_dialog.html', ['Custom_dialog'], '客服聊天'); //给客服留言
			make_states("custom_list", "custom_listctrl", "/custom_list", 'templates/worldsetting/custom_list.html', ['Custom_list'], '客服一览'); //给客服留言
			make_states("t-password", "t_passowrdctrl", "/t-password", 'templates/worldsetting/t-password.html', ['T_password'], '修改密码');
			make_states("pay-password", "pay_passwordctrl", "/pay-password/:order_id", 'templates/worldsetting/pay-password.html', ['Pay_password'], '支付密码');

			/**************************************UI路由-worldservice--子页面**************************************/
			make_states("transfer", "transferctrl", "/transfer", 'templates/worldservice/transfer.html', ['Transfer'], '整体转让');
			make_states("transfer_publish", "transfer_publishctrl", "/transfer_publish", 'templates/worldservice/transfer_publish.html', ['Transfer_publish'], '转让发布');
			make_states("transferdetail", "transferdetailctrl", "/transferdetail/:good_id", 'templates/worldservice/transferdetail.html', ['Transferdetail'], '转让详情');
			make_states("newproductpost_test", "newproductpost_testctrl", "/newproductpost_test/:act_id/:act_type", 'templates/worldservice/newproductpost_test.html', ['Newproductpost_test'], '新品测试活动详情');
			make_states("newpropromotions_goods", "newpropromotions_goodsctrl", "/newpropromotions_goods/:goods_id/:act_id", 'templates/worldservice/newpropromotions_goods.html', ['Newpropromotions_goods'], '商品详情');
			make_states("newpropromotions_info", "newpropromotions_infoctrl", "/newpropromotions_info/:goods_id/:act_id/:index/:product_id", 'templates/worldservice/newpropromotions_info.html', ['Newpropromotions_info'], '图文详情');
			make_states("newproductpost_give", "newproductpost_givectrl", "/newproductpost_give/:id", 'templates/worldservice/newproductpost_give.html', ['Newproductpost_give'], '申请');
			make_states("newpropromotions", "newpropromotionsctrl", "/newpropromotions", 'templates/worldservice/newpropromotions.html', ['Newpropromotions'], '新品推广');
			make_states("show", "showctrl", "/show", 'templates/worldservice/show.html', ['Show'], '行业信息');
			make_states("showdetail", "showdetailctrl", "/showdetail/:id", 'templates/worldservice/showdetail.html', ['Showdetail'], '展会详情');
			make_states("industryrankings", "industryrankingsctrl", "/industryrankings", 'templates/worldservice/industryrankings.html', ['Industryrankings'], '行业排名');
			make_states("industryrankingsone", "industryrankingsonectrl", "/industryrankingsone/:store_id", 'templates/worldservice/industryrankingsone.html', ['Industryrankingsone'], '店铺排名详情');
			make_states("industryrankingsdetail", "industryrankingsdetailctrl", "/industryrankingsdetail/:store_type", 'templates/worldservice/industryrankingsdetail.html', ['Industryrankingsdetail'], '店商排名');
			make_states("proconsult", "proconsultctrl", "/proconsult", 'templates/worldservice/proconsult.html', ['Proconsult'], '产品顾问');
			make_states("proconsultproblem", "proconsultproblemctrl", "/proconsultproblem", 'templates/worldservice/proconsultproblem.html', ['Proconsultproblem'], '售后疑问');
			make_states("proconsultservice", "proconsultservicectrl", "/proconsultservice/:video_type", 'templates/worldservice/proconsultservice.html', ['Proconsultservice'], '产品功能/安装/维修演示');
			make_states("recruitment", "recruitmentctrl", "/recruitment", 'templates/worldservice/recruitment.html', ['Recruitment'], '人才市场');
			make_states("recruitmentbuild", "recruitmentbuildctrl", "/recruitmentbuild", 'templates/worldservice/recruitmentbuild.html', ['Recruitmentbuild'], '人才市场');
			make_states("recruitmentdetail", "recruitmentdetailctrl", "/recruitmentdetail", 'templates/worldservice/recruitmentdetail.html', ['Recruitmentdetail'], '完善信息');
			make_states("recruitmentmanage", "recruitmentmanagectrl", "/recruitmentmanage", 'templates/worldservice/recruitmentmanage.html', ['Recruitmentmanage'], '人才市场');
			make_states("recruitmentsearchjob", "recruitmentsearchjobctrl", "/recruitmentsearchjob", 'templates/worldservice/recruitmentsearchjob.html', ['Recruitmentmanage'], '搜索职位');
			make_states("recruitmentsearchresume", "recruitmentsearchresumectrl", "/recruitmentsearchresume", 'templates/worldservice/recruitmentsearchresume.html', ['Recruitmentmanage'], '搜索简历');
			make_states("salesoutlets", "salesoutletsctrl", "/salesoutlets", 'templates/worldservice/salesoutlets.html', ['Salesoutlets'], '售后网点');
			make_states("seckill", "seckillctrl", "/seckill", 'templates/worldservice/seckill.html', ['Seckill'], '秒杀');
			make_states("seckilldetail", "seckilldetailctrl", "/seckilldetail/:act_id/:type", 'templates/worldservice/seckilldetail.html', ['Seckilldetail'], '秒杀详情');
			make_states("seckill_goods", "seckillgoodsctrl", "/seckill_goods/:goods_id/:act_id/:product_id", 'templates/worldservice/seckill_goods.html', ['Seckillgoods'], '商品详情');
			make_states("agent", "agentctrl", "/agent", 'templates/worldservice/agent.html', ['Agent'], '招商代理');
			make_states("groupbuy", "groupbuyctrl", "/groupbuy", 'templates/worldservice/groupbuy.html', ['Groupbuy'], '疯狂团购');
			make_states("groupbuydetail", "groupbuydetailctrl", "/groupbuydetail/:act_id/:type", 'templates/worldservice/groupbuydetail.html', ['Groupbuydetail'], '团购详情');
			make_states("liveplay", "liveplayctrl", "/liveplay", 'templates/worldservice/liveplay.html', ['Liveplay'], '直播互动会');
			make_states("memberaddress", "memberaddressctrl", "/memberaddress", 'templates/worldservice/memberaddress.html', ['Memberaddress'], '会员地址');
			make_states("myproduct", "myproductctrl", "/myproduct", 'templates/worldservice/myproduct.html', ['Myproduct'], '我要找产品');
			make_states("myproductdetail", "myproductdetailctrl", "/myproductdetail/:detail_id", 'templates/worldservice/myproductdetail.html', ['Myproductdetail'], '求购详情');
			make_states("panicauction", "panicauctionctrl", "/panicauction", 'templates/worldservice/panicauction.html', ['Panicauction'], '拍卖');
			make_states("panicauctiondetail", "panicauctiondetailctrl", "/panicauctiondetail/:act_id/:goods_id/:product_id", 'templates/worldservice/panicauctiondetail.html', ['Panicauctiondetail'], '限时拍卖');
			make_states("panicauction_pinfo", "panicauction_pinfoctrl", "/panicauction_pinfo/:act_id/:product_id/:id/:is_price", 'templates/worldservice/panicauction_pinfo.html', ['Panicauction_pinfo'], '图文详情');
			make_states("panicauction_pay", "panicauction_payctrl", "/panicauction_pay/:act_id/:apply_id/:goods_id/:product_id", 'templates/worldservice/panicauction_pay.html', ['Panicauction_pay'], '保证金支付');
			make_states("activitysecond", "activitysecondctrl", "/activitysecond/:act_id/:as_id/:type", 'templates/worldservice/activitysecond.html', ['Activitysecond'], '活动详情');
			make_states("activitythree", "activitythreectrl", "/activitythree/:act_id/:goods_id/:product_id/:type", 'templates/worldservice/activitythree.html', ['Activitythree'], '活动商品详情');
			make_states("panicbuying", "panicbuyingctrl", "/panicbuying", 'templates/worldservice/panicbuying.html', ['Panicbuying'], '限时抢购');
			make_states("previewamount", "previewamountctrl", "/previewamount", 'templates/worldservice/previewamount.html', ['Previewamount'], '浏览量');
			make_states("previewamountpro", "previewamountproctrl", "/previewamountpro", 'templates/worldservice/previewamountpro.html', ['Previewamountpro'], '产品浏览量');
			make_states("previewamountrank", "previewamountrankctrl", "/previewamountrank", 'templates/worldservice/previewamountrank.html', ['Previewamountpro'], '品牌浏览量');
			make_states("promarket", "promarketctrl", "/promarket", 'templates/worldservice/promarket.html', ['Promarket'], '产品推广会');
			make_states("promotions", "promotionsctrl", "/promotions", 'templates/worldservice/promotions.html', ['Promotions'], '产品推广');
			make_states("promotionslist", "promotionslistctrl", "/promotionslist", 'templates/worldservice/promotionslist.html', ['Promotions'], '产品促销');
			make_states("productextent", "productextentctrl", "/productextent", 'templates/worldservice/productextent.html', ['Productextent'], '产品促销');
			make_states("productextentdetail", "productextentdetailctrl", "/productextentdetail/:act_id", 'templates/worldservice/productextentdetail.html', ['Productextentdetail'], '产品推广会');
			make_states("promotionsdetail", "promotionsdetailctrl", "/promotionsdetail/:act_id", 'templates/worldservice/promotionsdetail.html', ['Promotionsdetail'], '促销');
			make_states("promotionslive", "promotionslivectrl", "/promotionslive/:act_id/:as_id", 'templates/worldservice/promotionslive.html', ['Promotionsdetail'], '产品推广直播');
			make_states("promotionspicture", "promotionspicturectrl", "/promotionspicture/:act_id/:as_id", 'templates/worldservice/promotionspicture.html', ['Promotionsdetail'], '产品促销交流群');
			make_states("videoplaying", "videoplayingctrl", "/videoplaying", 'templates/worldservice/videoplaying.html', ['Videoplaying'], '视频交互会');
			make_states("unsalableused", "unsalableusedctrl", "/unsalableused", 'templates/worldservice/unsalableused.html', ['Unsalableused'], '二手租赁');
			make_states("unsalablepro", "unsalableproctrl", "/unsalablepro", 'templates/worldservice/unsalablepro.html', ['Unsalablepro'], '滞销产品');
			make_states("t-warehouse-information", "warehouse_infoctrl", "/t-warehouse-information", 'templates/worldservice/t-warehouse-information.html', ['Warehouse_info'], '分仓信息');
			make_states("themember", "thememberctrl", "/themember", 'templates/worldservice/themember.html', ['Themember'], '会员专享');
			make_states("train", "trainctrl", "/train", 'templates/worldservice/train.html', ['Train'], '培训支持');
			make_states("exchange_interaction", "exchange_interactionctrl", "/exchange_interaction", 'templates/worldservice/exchange_interaction.html', ['Exchange_interaction'], '交流互动');
			make_states("bbs", "bbsctrl", "/bbs", 'templates/worldservice/bbs.html', ['Bbs'], 'BBS论坛');
			make_states("exchange_interaction_chat", "exchange_interaction_chatctrl", "/exchange_interaction_chat/:group_id", 'templates/worldservice/exchange_interaction_chat.html', ['Exchange_interaction_chat'], '交流互动');
			make_states("groupbuy_goods", "groupbuygoodsctrl", "/groupbuy_goods/:goods_id/:act_id/:product_id", 'templates/worldservice/groupbuy_goods.html', ['Groupbuy_goods'], '商品详情');
			make_states("newsend_detail", "newsend_detailctrl", "/newsend_detail/:act_id/:goods_id/:product_id", 'templates/worldservice/newsend_detail.html', ['NewsendDetail'], '新品赠送详情');
			make_states("newnotice_detail", "newnotice_detailctrl", "/newnotice_detail/:act_id/:goods_id/:product_id", 'templates/worldservice/newnotice_detail.html', ['NewnoticeDetail'], '新品公告详情');
			make_states("newtest_detail", "newtest_detailctrl", "/newtest_detail/:act_id/:goods_id/:product_id", 'templates/worldservice/newtest_detail.html', ['NewtestDetail'], '新品测试详情');

			/**************************************UI路由 陆-子页面**************************************/
			make_states("redpocket", "redpocketctrl", "/redpocket", 'templates/aboutme/redpocket.html', ['Redpocket'], '我的红包');
			make_states("sendredpocket", "sendredpocketctrl", "/sendredpocket", 'templates/aboutme/sendredpocket.html', ['Sendredpocket'], '我的红包');
			make_states("predeposit", "predepositctrl", "/predeposit", 'templates/aboutme/predeposit.html', ['Predeposit'], '我的预存款');
			make_states("predepositwater", "predepositwaterctrl", "/predepositwater", 'templates/aboutme/predepositwater.html', ['Predepositwater'], '我的预存款');
			make_states("mypoint", "mypointctrl", "/mypoint", 'templates/aboutme/mypoint.html', ['Mypoint'], '我的积分');
			make_states("pointgoods", "pointgoodsctrl", "/pointgoods/:id", 'templates/aboutme/pointgoods.html', ['Pointgoods'], '积分兑换');
			make_states("pointorder", "pointorderctrl", "/pointorder/:orderinfo", 'templates/aboutme/pointorder.html', ['Pointorder'], '确认兑换商品');
			make_states("favorite", "favoritectrl", "/favorite", 'templates/aboutme/favorite.html', ['Favorite'], '我的收藏');
			make_states("mybrowsing", "mybrowsingctrl", "/mybrowsing", 'templates/aboutme/mybrowsing.html', ['Mybrowsing'], '我的足迹');
			make_states("couponlist", "couponlistctrl", "/couponlist", 'templates/aboutme/couponlist.html', ['Couponlist'], '优惠券');
			make_states("predepositdetails", "predepositdetailsctrl", "/predepositdetails", 'templates/aboutme/predepositdetails.html', ['Predepositdetails'], '预付款明细');
			make_states("mypointdetail", "mypointdetailctrl", "/mypointdetail", 'templates/aboutme/mypointdetail.html', ['Mypointdetail'], '积分明细');
			make_states("exchangerecord", "exchangerecordctrl", "/exchangerecord", 'templates/aboutme/exchangerecord.html', ['Exchangerecord'], '兑换记录');
			make_states("predepositresult", "predepositresultctrl", "/predepositresult/:isSuccess/:payType/:money/:failReason/:isAfpay/:order_id", 'templates/aboutme/predepositresult.html', ['Predepositresult'], '充值详情');

			/**************************************UI路由---order/goods--子页面**************************************/
			make_states("productsearch", "productsearchctrl", "/productsearch/:top_search_flag/:st/:cat_id/:cat_name/:brand_id/:brand_name/:goods_name/:keywords", 'templates/order/goods/productsearch.html', ['Productsearch'], '商品检索');
			make_states("productdetail", "productdetailctrl", "/productdetail/:goods_id/:type/:limit", 'templates/order/goods/productdetail.html', ['Productdetail'], '商品详情');
			make_states("recommend_info", "recommend_infoctrl", "/recommend_info/:goods_id", 'templates/order/goods/recommend_info.html', ['Recommend_info'], '宝贝详情');
			make_states("productdetail_recommend", "productdetail_recommendctrl", "/productdetail_recommend/:goods_id", 'templates/order/goods/productdetail_recommend.html', ['Productdetail_recommend'], '推荐商品详情');
			make_states("product_info", "product_infoctrl", "/product_info/:id/:goods_id/:show_consult/:show_discuss/:show_selllog", 'templates/order/goods/product_info.html', ['Product_info'], '图文详情');
			make_states("wenda", "wendactrl", "/wenda", 'templates/order/goods/wenda.html', ['Wenda'], '商品问答');
			make_states("seckill_pinfo", "seckill_pinfoctrl", "/seckill_pinfo/:id/:isTransfer/:goods_id/:act_id/:product_id ", 'templates/order/goods/seckill_pinfo.html', ['Seckill_pinfo'], '图文详情');
			make_states("activity_info", "activity_infoctrl", "/activity_info/:goods_id/:act_id/:product_id/:type", 'templates/order/goods/activity_info.html', ['Activity_info'], '图文详情');
			make_states("groupbuy_pinfo", "groupbuy_pinfoctrl", "/groupbuy_pinfo/:id/:isTransfer/:goods_id/:act_id/:product_id", 'templates/order/goods/groupbuy_pinfo.html', ['Groupbuy_pinfo'], '图文详情');
			make_states("newnotice_pinfo", "newnotice_pinfoctrl", "/newnotice_pinfo/:id/:isTransfer/:goods_id/:act_id/:product_id", 'templates/order/goods/newnotice_pinfo.html', ['Newnotice_pinfo'], '图文详情');
			make_states("newsend_pinfo", "newsend_pinfoctrl", "/newsend_pinfo/:id/:isTransfer/:goods_id/:act_id/:product_id", 'templates/order/goods/newsend_pinfo.html', ['Newsend_pinfo'], '图文详情');
			/**************************************UI路由---order/store--子页面**************************************/
			make_states("hotcat", "hotcatctrl", "/hotcat", 'templates/order/store/hotcat.html', ['Hotcat'], '热门分类');
			make_states("shopinfo", "shopinfoctrl", "/shopinfo/:store_id", 'templates/order/store/shopinfo.html', ['Shopinfo'], '店铺详情');

			/**************************************我的大全--catalog-子页面**************************************/
			make_states("myworldindex", "myworldindexctrl", "/myworldindex", 'templates/myworld/catalog/myworldindex.html', ['Myworldindex'], '我的未来万家');
			make_states("mydeposit", "mydepositctrl", "/mydeposit", 'templates/myworld/catalog/mydeposit.html', ['Mydeposit'], '我的押金');
			make_states("productmanager", "productmanagerctrl", "/productmanager", 'templates/myworld/catalog/productmanager.html', ['Productmanager'], '商品管理');
			make_states("productmanager_publish", "productmanager_publishctrl", "/productmanager_publish", 'templates/myworld/catalog/productmanager_publish.html', ['Productmanager_publish'], '商品发布');
			make_states("productmanager_publish_more", "productmanager_publish_morectrl", "/productmanager_publish_more/:goods_id", 'templates/myworld/catalog/productmanager_publish_more.html', ['Productmanager_publish_more'], '配件发布');
			make_states("productmanager_sale", "productmanager_salectrl", "/productmanager_sale", 'templates/myworld/catalog/productmanager_sale.html', ['Productmanager_sale'], '销售中的商品');
			make_states("productmanager_sale_edit", "productmanager_sale_editctrl", "/productmanager_sale_edit", 'templates/myworld/catalog/productmanager_sale_edit.html', ['Productmanager_sale_edit'], '销售中的商品');
			make_states("productmanager_brand", "productmanager_brandctrl", "/productmanager_brand", 'templates/myworld/catalog/productmanager_brand.html', ['Productmanager_brand'], '品牌管理');
			make_states("productmanager_brand_agent", "productmanager_brand_agentctrl", "/productmanager_brand_agent", 'templates/myworld/catalog/productmanager_brand_agent.html', ['Productmanager_brand_agent'], '品牌管理');
			make_states("productmanager_brand_edit", "productmanager_brand_editctrl", "/productmanager_brand_edit/:id", 'templates/myworld/catalog/productmanager_brand_edit.html', ['Productmanager_brand_edit'], '品牌管理');
			make_states("branddetail", "branddetailctrl", "/branddetail/:id", 'templates/myworld/catalog/branddetail.html', ['Branddetail'], '品牌详情');
			make_states("productmanager_brand_agent_edit", "productmanager_brand_agent_editctrl", "/productmanager_brand_agent_edit/:id", 'templates/myworld/catalog/productmanager_brand_agent_edit.html', ['Productmanager_brand_agent_edit'], '品牌申请');
			make_states("productmanager_sort", "productmanager_sortctrl", "/productmanager_sort", 'templates/myworld/catalog/productmanager_sort.html', ['Productmanager_sort'], '自定义分类');
			make_states("productmanager_sort_edit", "productmanager_sort_editctrl", "/productmanager_sort_edit/:custom_cat_id/:parent_id/:add_second", 'templates/myworld/catalog/productmanager_sort_edit.html', ['Productmanager_sort_edit'], '添加分类');
			make_states("productmanager_sort_second_edit", "productmanager_sort_editctrl", "/productmanager_sort_second_edit/:custom_cat_id/:parent_id/:add_second", 'templates/myworld/catalog/productmanager_sort_second_edit.html', ['Productmanager_sort_edit'], '添加分类');
			make_states("productmanager_waitsale", "productmanager_waitsalectrl", "/productmanager_waitsale", 'templates/myworld/catalog/productmanager_waitsale.html', ['Productmanager_waitsale'], '待上架商品');
			make_states("productmanager_waitsale_edit", "productmanager_waitsale_editctrl", "/productmanager_waitsale_edit", 'templates/myworld/catalog/productmanager_waitsale_edit.html', ['Productmanager_waitsale_edit'], '待上架商品');

			/**************************************我的大全--busniess-子页面**************************************/
			make_states("starbusiness_publicity", "starbusiness_publicityctrl", "/starbusiness_publicity/:id", 'templates/myworld/business/starbusiness_publicity.html', ['Starbusiness_publicity'], '企业宣传片');
			make_states("starbusiness_publicity_apply", "starbusiness_publicity_applyctrl", "/starbusiness_publicity_apply/:id", 'templates/myworld/business/starbusiness_publicity_apply.html', ['Starbusiness_publicity_apply'], '申请/编辑');
			make_states("starbusiness_pushinfo", "starbusiness_pushinfoctrl", "/starbusiness_pushinfo", 'templates/myworld/business/starbusiness_pushinfo.html', ['Starbusiness_pushinfo'], '企业信息推送');
			make_states("starbusiness_pushinfo_apply", "starbusiness_pushinfo_applyctrl", "/starbusiness_pushinfo_apply/:id", 'templates/myworld/business/starbusiness_pushinfo_apply.html', ['Starbusiness_pushinfo_apply'], '申请');
			make_states("wanttoagent", "wanttoagentctrl", "/wanttoagent", 'templates/myworld/business/wanttoagent.html', ['Wanttoagent'], '我要代理');
			make_states("wanttodistributor", "wanttodistributorctrl", "/wanttodistributor", 'templates/myworld/business/wanttodistributor.html', ['Wanttodistributor'], '我要经销');
			make_states("employeemanager", "employeemanagerctrl", "/employeemanager", 'templates/myworld/business/employeemanager.html', ['Employeemanager'], '店员管理');
			make_states("employeemanager_add", "employeemanager_addctrl", "/employeemanager_add/:id", 'templates/myworld/business/employeemanager_add.html', ['Employeemanager_add'], '添加/修改店员');
			make_states("employeemanager_rights", "employeemanager_rightsctrl", "/employeemanager_rights", 'templates/myworld/business/employeemanager_rights.html', ['Employeemanager_rights'], '店员管理');
			make_states("employeemanager_rights_add", "employeemanager_rights_addctrl", "/employeemanager_rights_add/:id", 'templates/myworld/business/employeemanager_rights_add.html', ['Employeemanager_rights_add'], '添加店员角色');

			/**************************************我的大全--agent-子页面**************************************/
			make_states("myagent", "myagentctrl", "/myagent/:isAgent", 'templates/myworld/agent/myagent.html', ['Myagent'], '我的授权中心');
			make_states("myagentsale", "myagentsalectrl", "/myagentsale/:store_id", 'templates/myworld/agent/myagentsale.html', ['Myagentsale'], '查看销量');
			make_states("myagent_blacklist", "myagent_blacklistctrl", "/myagent_blacklist", 'templates/myworld/agent/myagent_blacklist.html', ['Myagent_blacklist'], '黑名单一览');
			make_states("myagent_order", "myagent_orderctrl", "/myagent_order/:id", 'templates/myworld/agent/myagent_order.html', ['Myagent_order'], '授权中心订单一览');
			make_states("myagent_add", "myagent_addctrl", "/myagent_add/:store_id/:isAgent", 'templates/myworld/agent/myagent_add.html', ['Myagent_add'], '修改/添加代理商');
			make_states("myagent_list", "myagent_listctrl", "/myagent_list/:is_init", 'templates/myworld/agent/myagent_list.html', ['Myagent_list'], '我发布的寻找授权中心一览');
			make_states("myagent_publish", "myagent_publishctrl", "/myagent_publish/:info_id", 'templates/myworld/agent/myagent_publish.html', ['Myagent_publish'], '寻找授权中心');

			/**************************************我的大全--distributor-子页面**************************************/
			make_states("distributor", "distributorctrl", "/distributor/:is_init", 'templates/myworld/distributor/distributor.html', ['Distributor'], '我的加盟店');
			make_states("distributor_blacklist", "distributor_blacklistctrl", "/distributor_blacklist", 'templates/myworld/distributor/distributor_blacklist.html', ['Distributor_blacklist'], '黑名单一览');
			make_states("distributor_order", "distributor_orderctrl", "/distributor_order/:id", 'templates/myworld/distributor/distributor_order.html', ['Distributor_order'], '加盟店订单一览');
			make_states("distributor_add", "distributor_addctrl", "/distributor_add/:store_id", 'templates/myworld/distributor/distributor_add.html', ['Distributor_add'], '添加/修改经销商');
			make_states("distributor_list", "distributor_listctrl", "/distributor_list/:is_init", 'templates/myworld/distributor/distributor_list.html', ['Distributor_list'], '我发布的寻找加盟店一览');
			make_states("distributor_publish", "distributor_publishctrl", "/distributor_publish/:info_id", 'templates/myworld/distributor/distributor_publish.html', ['Distributor_publish'], '寻找加盟店');
			make_states("myagentdistributor_order", "myagentdistributor_orderctrl", "/myagentdistributor_order/:order_id/:store_id/:user_type_id", 'templates/myworld/distributor/myagentdistributor_order.html', ['Myagentdistributor_order'], '我的商铺的订单详情');

			/**************************************UI路由 sale-子页面**************************************/
			make_states("statistics", "statisticsctrl", "/statistics/:id/:type", 'templates/myworld/sale/statistics.html', ['Statistics'], '促销统计');
			make_states("statistics_test", "statistics_testctrl", "/statistics_test", 'templates/myworld/sale/statistics_test.html', ['Statistics_test'], '促销统计');
			make_states("statistics_present", "statistics_presentctrl", "/statistics_present", 'templates/myworld/sale/statistics_present.html', ['Statistics_present'], '促销统计');
			make_states("statistics_auction", "statistics_auctionctrl", "/statistics_auction/:id", 'templates/myworld/sale/statistics_auction.html', ['Statistics_auction'], '促销统计');
			make_states("statistics_auction_agent", "statistics_auction_agentctrl", "/statistics_auction_agent/:id", 'templates/myworld/sale/statistics_auction_agent.html', ['Statistics_auction_agent'], '促销统计');
			make_states("statistics_agent", "statistics_agentctrl", "/statistics_agent/:id", 'templates/myworld/sale/statistics_agent.html', ['Statistics_agent'], '促销统计');
			make_states("statistics_distributor", "statistics_distributorctrl", "/statistics_distributor/:id", 'templates/myworld/sale/statistics_distributor.html', ['Statistics_distributor'], '促销统计');
			make_states("statistics_second", "statistics_secondctrl", "/statistics_second/:id", 'templates/myworld/sale/statistics_second.html', ['Statistics_second'], '促销统计');
			make_states("statistics_second_agent", "statistics_second_agentctrl", "/statistics_second_agent/:act_id", 'templates/myworld/sale/statistics_second_agent.html', ['Statistics_second_agent'], '促销统计');
			make_states("statistics_groupbuy", "statistics_groupbuyctrl", "/statistics_groupbuy/:id", 'templates/myworld/sale/statistics_groupbuy.html', ['Statistics_groupbuy'], '促销统计');
			make_states("statistics_groupbuy_agent", "statistics_groupbuy_agentctrl", "/statistics_groupbuy_agent/:id", 'templates/myworld/sale/statistics_groupbuy_agent.html', ['Statistics_groupbuy_agent'], '促销统计');
			make_states("purchase", "purchasectrl", "/purchase", 'templates/myworld/sale/purchase.html', ['Purchase'], '限时抢购');
			make_states("purchase_agent", "purchase_agentctrl", "/purchase_agent", 'templates/myworld/sale/purchase_agent.html', ['Purchase_agent'], '限时抢购');
			make_states("purchase_distributor", "purchase_distributorctrl", "/purchase_distributor", 'templates/myworld/sale/purchase_distributor.html', ['Purchase_distributor'], '限时抢购');
			make_states("group", "groupctrl", "/group/:id", 'templates/myworld/sale/group.html', ['Group'], '团购');
			make_states("group_agent", "group_agentctrl", "/group_agent/:id", 'templates/myworld/sale/group_agent.html', ['Group_agent'], '团购');
			make_states("groupseckill", "groupseckillctrl", "/groupseckill/:act_id", 'templates/myworld/sale/groupseckill.html', ['Groupseckill'], '秒杀');
			make_states("groupseckill_agent", "groupseckill_agentctrl", "/groupseckill_agent/:act_id", 'templates/myworld/sale/groupseckill_agent.html', ['Groupseckill_agent'], '秒杀');
			make_states("connectagency", "connectagencyctrl", "/connectagency/:id", 'templates/myworld/sale/connectagency.html', ['Connectagency'], '抽奖');
			make_states("auctionup", "auctionupctrl", "/auctionup", 'templates/myworld/sale/auctionup.html', ['Auctionup'], '添加授权中心');
			make_states("grab", "grabctrl", "/grab/:id", 'templates/myworld/sale/grab.html', ['Grab'], '限时抢购');
			make_states("grabseckill", "grabseckillctrl", "/grabseckill/:id", 'templates/myworld/sale/grabseckill.html', ['Grabseckill'], '限时抢购');
			make_states("flashsale", "flashsalectrl", "/flashsale/:id", 'templates/myworld/sale/flashsale.html', ['Flashsale'], '限时抢购');

			/**************************************UI路由 mine-子页面**************************************/

			make_states("sxqd", "sxqdctrl", "/sxqd", 'templates/myworld/mine/sxqd.html', ['Sxqd'], '我的旗舰店');
			make_states("mybrandoperator", "mybrandoperatorctrl", "/mybrandoperator", 'templates/myworld/mine/mybrandoperator.html', ['Mybrandoperator'], '我的供应商');
			make_states("distributor_sxqd", "distributor_sxqdctrl", "/distributor_sxqd", 'templates/myworld/mine/distributor_sxqd.html', ['Distributor_sxqd'], '我的授权中心');
			make_states("distributor_redbag", "distributor_redbagctrl", "/distributor_redbag/:store_id/:advance", 'templates/myworld/mine/distributor_redbag.html', ['Distributor_redbag'], '发红包');
			make_states("distributor_sxqd_detail", "distributor_sxqd_detailctrl", "/distributor_sxqd_detail/:store_id", 'templates/myworld/mine/distributor_sxqd_detail.html', ['Distributor_sxqd_detail'], '供应商详情');
			make_states("credit_repayment", "credit_repaymentctrl", "/credit_repayment/:id", 'templates/myworld/mine/credit_repayment.html', ['Credit_repayment'], '授信还款');
			make_states("credit_repayment_list", "credit_repayment_listctrl", "/credit_repayment_list/:store_id", 'templates/myworld/mine/credit_repayment_list.html', ['Credit_repayment_list'], '授信明细');
			make_states("confirm_payment", "confirm_paymentctrl", "/confirm_payment/:id", 'templates/myworld/mine/confirm_payment.html', ['Confirm_payment'], '确认付款');
			make_states("myfriend", "myfriendctrl", "/myfriend", 'templates/myworld/mine/myfriend.html', ['Myfriend'], '我的好友');
			make_states("myfriendjxs", "myfriendjxsctrl", "/myfriendjxs", 'templates/myworld/mine/myfriendjxs.html', ['Myfriendjxs'], '我的好友店铺');
			make_states("pbuy", "pbuyctrl", "/pbuy", 'templates/myworld/mine/pbuy.html', ['Pbuy'], '我的求购一览');
			make_states("mypbuy", "mypbuyctrl", "/mypbuy", 'templates/myworld/mine/mypbuy.html', ['Mypbuy'], '我的求购');
			make_states("mypbuy_edit", "mypbuy_editctrl", "/mypbuy_edit/:id", 'templates/myworld/mine/mypbuy_edit.html', ['Mypbuy_edit'], '我的求购');

			/**************************************UI路由 auction-子页面**************************************/
			make_states("auction", "auctionctrl", "/auction/:act_id", 'templates/myworld/auction/auction.html', ['Auction'], '拍卖');
			make_states("auction_agent", "auction_agentctrl", "/auction_agent", 'templates/myworld/auction/auction_agent.html', ['Auction_agent'], '拍卖');

			/**************************************UI路由 newpro-子页面**************************************/
			make_states("activity", "activityctrl", "/activity/:type", 'templates/myworld/newpro/activity.html', ['Activity'], '新品测试');
			make_states("newgive", "newgivectrl", "/newgive", 'templates/myworld/newpro/newgive.html', ['Newgive'], '新品赠送');
			make_states("newnotice", "newnoticectrl", "/newnotice", 'templates/myworld/newpro/newnotice.html', ['Newnotice'], '新品公告');
			make_states("addtest", "addtestctrl", "/addtest", 'templates/myworld/newpro/addtest.html', ['Addtest'], '新品测试');
			make_states("joinactivity", "joinactivityctrl", "/joinactivity", 'templates/myworld/newpro/joinactivity.html', ['Joinactivity'], '参加活动');
			make_states("give", "givectrl", "/give", 'templates/myworld/newpro/give.html', ['Give'], '新品赠送');
			make_states("save", "savectrl", "/save", 'templates/myworld/newpro/save.html', ['Save'], '新品赠送选取申请用户');
			make_states("submit", "submitctrl", "/submit", 'templates/myworld/newpro/submit.html', ['Submit'], '新品赠送');
			make_states("ads", "adsctrl", "/ads/:act_id", 'templates/myworld/newpro/ads.html', ['Ads'], '新品广告');
			make_states("luckydraw", "luckydrawctrl", "/luckydraw", 'templates/myworld/newpro/luckydraw.html', ['Luckydraw'], '抽奖');
			make_states("luckydrawresult", "luckydrawresultctrl", "/luckydrawresult/:act_id", 'templates/myworld/newpro/luckydrawresult.html', ['Luckydrawresult'], '抽奖结果');
			make_states("luckydrawdetail", "luckydrawdetailctrl", "/luckydrawdetail", 'templates/myworld/newpro/luckydrawdetail.html', ['Luckydrawdetail'], '抽奖详情');
			make_states("lookinto", "lookintoctrl", "/lookinto", 'templates/myworld/newpro/lookinto.html', ['Lookinto'], '接受问卷');
			make_states("newprotestaboutme", "newprotestaboutmectrl", "/newprotestaboutme", 'templates/myworld/newpro/newprotestaboutme.html', ['Newprotestaboutme'], '我参与的新品测试');
			make_states("searchpro_common", "searchpro_commonctrl", "/searchpro_common", 'templates/myworld/newpro/searchpro_common.html', ['Searchpro_common'], '共通商品检索');
			make_states("searchpro_agent", "searchpro_agentctrl", "/searchpro_agent", 'templates/myworld/newpro/searchpro_agent.html', ['Searchpro_agent'], '授权中心选择');

			/**************************************UI路由 myworld-discount子页面**************************************/
			make_states("issuediscount", "issuediscountctrl", "/issuediscount", 'templates/myworld/discount/issuediscount.html', ['Issuediscount'], '优惠券管理');
			make_states("adddiscount", "adddiscountctrl", "/adddiscount/:id/:type", 'templates/myworld/discount/adddiscount.html', ['Adddiscount'], '添加优惠券');
			make_states("search_discount", "search_discountctrl", "/search_discount", 'templates/myworld/discount/search_discount.html', ['Search_discount'], '优惠券选择');
			make_states("sales", "salesctrl", "/sales", 'templates/myworld/discount/sales.html', ['Sales'], '促销');
			make_states("sales_manufactor", "sales_manufactorctrl", "/sales_manufactor", 'templates/myworld/discount/sales_manufactor.html', ['Sales_manufactor'], '促销');
			make_states("addsales", "addsalesctrl", "/addsales", 'templates/myworld/discount/addsales.html', ['Addsales'], '添加');
			make_states("d_add", "d_addctrl", "/d_add/:act_id", 'templates/myworld/discount/d_add.html', ['D_add'], '促销');
			make_states("d_add_agent", "d_add_agentctrl", "/d_add_agent/:act_id", 'templates/myworld/discount/d_add_agent.html', ['D_add_agent'], '促销');
			make_states("promotion", "promotionctrl", "/promotion/:id", 'templates/myworld/discount/promotion.html', ['Promotion'], '促销');
			make_states("promotionaddup", "promotionaddupctrl", "/promotionaddup/:id", 'templates/myworld/discount/promotionaddup.html', ['Promotionaddup'], '促销统计');
			make_states("promotionaddup_add_agent", "promotionaddup_add_agentctrl", "/promotionaddup_add_agent/:id", 'templates/myworld/discount/promotionaddup_add_agent.html', ['Promotionaddup_add_agent'], '促销统计');
			make_states("promotionaddup_agent", "promotionaddup_agentctrl", "/promotionaddup_agent/:id", 'templates/myworld/discount/promotionaddup_agent.html', ['Promotionaddup_agent'], '促销统计');

			/**************************************UI路由 myrecord-子页面**************************************/
			make_states("creditrepayview", "creditrepayviewctrl", "/creditrepayview/:id", 'templates/myrecord/creditrepayview.html', ['Creditrepayview'], '授信还款一览');
			make_states("distributor_creditrepayview", "distributor_creditrepayviewctrl", "/distributor_creditrepayview/:id", 'templates/myrecord/distributor_creditrepayview.html', ['Distributor_creditrepayview'], '授信还款一览');
			make_states("mygroupbuy", "mygroupbuyctrl", "/mygroupbuy", 'templates/myrecord/mygroupbuy.html', ['Mygroupbuy'], '团购一览');
			make_states("mygroupbuy_agent", "mygroupbuy_agentctrl", "/mygroupbuy_agent", 'templates/myrecord/mygroupbuy_agent.html', ['Mygroupbuy_agent'], '团购一览');
			make_states("mygroupbuy_dealer", "mygroupbuy_dealerctrl", "/mygroupbuy_dealer", 'templates/myrecord/mygroupbuy_dealer.html', ['Mygroupbuy_dealer'], '我的团购');
			make_states("secondkill_dealer", "secondkill_dealerctrl", "/secondkill_dealer", 'templates/myrecord/secondkill_dealer.html', ['Secondkill_dealer'], '我的秒杀');
			make_states("prizewinning", "prizewinningctrl", "/prizewinning/:id", 'templates/myrecord/prizewinning.html', ['Prizewinning'], '中奖');
			make_states("virtualgoods", "virtualgoodsctrl", "/virtualgoods", 'templates/myrecord/virtualgoods.html', ['Virtualgoods'], '虚拟商品');
			make_states("newpro_present", "newpro_presentctrl", "/newpro_present", 'templates/myrecord/newpro_present.html', ['Newpro_present'], '新品赠送');
			make_states("teambuy", "teambuyctrl", "/teambuy", 'templates/myrecord/teambuy.html', ['Teambuy'], '发起的团购');
			make_states("secondkill", "secondkillctrl", "/secondkill", 'templates/myrecord/secondkill.html', ['Secondkill'], '发起的秒杀');
			make_states("secondkill_agent", "secondkill_agentctrl", "/secondkill_agent", 'templates/myrecord/secondkill_agent.html', ['Secondkill_agent'], '发起的秒杀');
			make_states("auctiontrade", "auctiontradectrl", "/auctiontrade", 'templates/myrecord/auctiontrade.html', ['Auctiontrade'], '发起的拍卖');
			make_states("auctiontrade_agent", "auctiontrade_agentctrl", "/auctiontrade_agent", 'templates/myrecord/auctiontrade_agent.html', ['Auctiontrade_agent'], '发起的拍卖');
			make_states("auctiontrade_dealer", "auctiontrade_dealerctrl", "/auctiontrade_dealer", 'templates/myrecord/auctiontrade_dealer.html', ['Auctiontrade_dealer'], '我的拍卖');
			make_states("newpro_ads", "newpro_adsctrl", "/newpro_ads", 'templates/myrecord/newpro_ads.html', ['Newpro_ads'], '新品广告一览');

			/**************************************UI路由 order-form-子页面**************************************/
			make_states("buyerpayment", "buyerpaymentctrl", "/buyerpayment/:order_id/:tab", 'templates/order/form/buyerpayment.html', ['Buyerpayment'], '订单详情');
			make_states("sellerpayment", "sellerpaymentctrl", "/sellerpayment/:order_id", 'templates/order/form/sellerpayment.html', ['Sellerpayment'], '状态详情');
			make_states("seller_send", "seller_sendctrl", "/seller_send/:order_id/:buttonId", 'templates/order/form/seller_send.html', ['Seller_send'], '发货');
			make_states("orderlogistics", "orderlogisticsctrl", "/orderlogistics/:order_id", 'templates/order/form/orderlogistics.html', ['Orderlogistics'], '查看物流');
			make_states("refund", "refundctrl", "/refund", 'templates/order/form/refund.html', ['Refund'], '我要退款');
			make_states("sellerrefund", "sellerrefundctrl", "/sellerrefund", 'templates/order/form/sellerrefund.html', ['Sellerrefund'], '我的退款退货');
			make_states("refundtenderdetail", "refundtenderdetailctrl", "/refundtenderdetail/:order_id", 'templates/order/form/refundtenderdetail.html', ['Refundtenderdetail'], '退款详细');
			make_states("comment", "commentctrl", "/comment", 'templates/order/form/comment.html', ['Comment'], '评价');
			make_states("comment_seller", "comment_sellerctrl", "/comment_seller", 'templates/order/form/comment_seller.html', ['Comment_seller'], '商品评价一览');

			/**************************************UI路由 set-子页面**************************************/
			make_states("hongbaodetail", "hongbaodetailctrl", "/hongbaodetail/:id", 'templates/set/hongbaodetail.html', ['Hongbaodetail'], '红包雨');
			make_states("hongbaolist", "hongbaolistctrl", "/hongbaolist", 'templates/set/hongbaolist.html', ['Hongbaolist'], '红包专场');
			make_states("receipt", "receiptctrl", "/receipt", 'templates/set/receipt.html', ['Receipt'], '发票一览');
			make_states("banklist", "banklistctrl", "/banklist", 'templates/set/banklist.html', ['Banklist'], '银行账号一览');
			make_states("stest", "stestctrl", "/stest", 'templates/set/stest.html', ['Stest'], '接口测试');
			make_states("filesystem", "filesystemctrl", "/filesystem", 'templates/set/filesystem.html', ['Filesystem'], '文件列表');
			make_states("live800", "live800ctrl", "/live800", 'templates/set/live800.html', ['Live800'], '平台客服');
			make_states("livechat1", "livechat1ctrl", "/livechat1/:order_id/:store_id/:member_id", 'templates/set/livechat1.html', ['Livechat1'], '门店客服');
			make_states("livechat2", "livechat2ctrl", "/livechat2/:order_id/:store_id/:member_id/:uid/:code/:wckey", 'templates/set/livechat2.html', ['Livechat2'], '门店客服');
			make_states("livechat3", "livechat3ctrl", "/livechat3/:uid/:code/:wckey", 'templates/set/livechat3.html', ['Livechat3'], '门店客服');
			/**************************************UI路由 service-子页面**************************************/
			make_states("star", "starctrl", "/star", 'templates/service/star.html', ['Star'], '企业宣传片');
			make_states("stardetail", "stardetailctrl", "/stardetail/:detail_id", 'templates/service/stardetail.html', ['Stardetail'], '视频详情');
			make_states("distribution", "distributionctrl", "/distribution", 'templates/service/distribution.html', ['Distribution'], '行业分布');
			make_states("searchorder", "searchorderctrl", "/searchorder", 'templates/service/searchorder.html', ['Searchorder'], '求购列表');
			make_states("secondhand", "secondhandctrl", "/secondhand/:pageType", 'templates/service/secondhand.html', ['Secondhand'], '二手/租赁产品');
			make_states("lease", "leasectrl", "/lease", 'templates/service/lease.html', ['Lease'], '租赁');

			/**************************************UI路由 aftersale-子页面**************************************/
			make_states("afall", "afallctrl", "/afall/:type", 'templates/aftersale/afall.html', ['Afall'],'全部订单');
			make_states("afallseller", "afallsellerctrl", "/afallseller/:type", 'templates/aftersale/afallseller.html', ['Afallseller'],'全部订单');
			make_states("proorder", "proorderctrl", "/proorder", 'templates/aftersale/proorder.html', ['Proorder'],'订单促销');
			make_states("prosaleorder", "prosaleorderctrl", "/prosaleorder/:act_id", 'templates/aftersale/prosaleorder.html', ['Prosaleorder'],'已售订单');
			make_states("addpro", "addproctrl", "/addpro/:act_id", 'templates/aftersale/addpro.html', ['Addpro'],'添加促销');
			make_states("afback", "afbackctrl", "/afback/:order_id", 'templates/aftersale/afback.html', ['Afback'],'我要退款');
			make_states("afpay", "afpayctrl", "/afpay/:order_id", 'templates/modal/afpay.html', ['Afpay'],'支付方式');
			make_states("afsrue", "afsruectrl", "/afsrue/:type/:status", 'templates/aftersale/afsrue.html', ['Afsrue'],'确认订单');
			make_states("aftalk", "aftalkctrl", "/aftalk/:order_id/:is_new/:act_id/:act_type", 'templates/aftersale/aftalk.html', ['Aftalk'],'发表评价');
			make_states("aftalkagain", "aftalkagainctrl", "/aftalkagain/:id/:type", 'templates/aftersale/aftalkagain.html', ['Aftalkagain'],'追加评价');
			make_states("afupdate", "afupdatectrl", "/afupdate/:order_id", 'templates/aftersale/afupdate.html', ['Afupdate'],'修改价格'); ///:createtime

			/**************************************UI路由 store-子页面**************************************/
			make_states("first", "firstctrl", "/first/:index/:store_id/:coupon_id", 'templates/store/first.html', ['First'], '店铺首页');
			make_states("shopcustom", "shopcustomctrl", "/shopcustom/:store_id", 'templates/store/shopcustom.html', ['Shopcustom'], '客服联系');
			make_states("shopmsg", "shopmsgctrl", "/shopmsg/:store_id", 'templates/store/shopmsg.html', ['Shopmsg'], '店铺公告');

			// if none of the above states are matched, use this as the fallback
			$urlRouterProvider.otherwise('/tab/home');

		});

		return app;
	}
);